mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
24.11.2015 8d21db36015f8560d9cd2bcee9817f2c0a07a386
opendj-server-legacy/src/main/java/org/opends/server/schema/CollationMatchingRuleFactory.java
@@ -64,14 +64,14 @@
  private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass();
  // Stores the list of available locales on this JVM.
  /** Stores the list of available locales on this JVM. */
  private static final Set<Locale> supportedLocales = new HashSet<Locale>(
      Arrays.asList(Locale.getAvailableLocales()));
  // Current Configuration.
  /** Current Configuration. */
  private CollationMatchingRuleCfg currentConfig;
  // Map of OID and the Matching Rule.
  /** Map of OID and the Matching Rule. */
  private final Map<String, MatchingRule> matchingRules =
      new HashMap<String, MatchingRule>();
@@ -84,9 +84,7 @@
    super();
  }
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  @Override
  public final Collection<org.forgerock.opendj.ldap.schema.MatchingRule> getMatchingRules()
  {
@@ -114,9 +112,7 @@
    matchingRules.clear();
  }
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  @Override
  public void initializeMatchingRule(CollationMatchingRuleCfg configuration)
      throws ConfigException, InitializationException
@@ -169,11 +165,7 @@
    currentConfig.addCollationChangeListener(this);
  }
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  @Override
  public void finalizeMatchingRule()
  {
@@ -181,11 +173,7 @@
    currentConfig.removeCollationChangeListener(this);
  }
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  @Override
  public ConfigChangeResult applyConfigurationChange(
      CollationMatchingRuleCfg configuration)
@@ -242,9 +230,7 @@
    return ccr;
  }
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  @Override
  public boolean isConfigurationChangeAcceptable(
      CollationMatchingRuleCfg configuration,
@@ -336,22 +322,18 @@
    return locale;
  }
  /**
   * A utility class for extracting the OID and Language Tag from the
   * configuration entry.
   */
  private final class CollationMapper
  {
    // OID of the collation rule.
    /** OID of the collation rule. */
    private String oid;
    // Language Tag.
    /** Language Tag. */
    private String lTag;
    /**
     * Creates a new instance of CollationMapper.
     *
@@ -368,8 +350,6 @@
      }
    }
    /**
     * Returns the OID part of the collation text.
     *
@@ -380,8 +360,6 @@
      return oid;
    }
    /**
     * Returns the language Tag of collation text.
     *