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

Jean-Noel Rouvignac
24.41.2015 e7cac727a9231ff3602e61a4ea678e0463eb0e39
opendj-server-legacy/src/main/java/org/opends/server/admin/ManagedObjectDefinitionI18NResource.java
@@ -48,7 +48,7 @@
 */
public final class ManagedObjectDefinitionI18NResource {
  // Application-wide set of instances.
  /** Application-wide set of instances. */
  private static final Map<String, ManagedObjectDefinitionI18NResource>
    INSTANCES = new HashMap<String, ManagedObjectDefinitionI18NResource>();
@@ -82,7 +82,7 @@
  // Get a resource instance creating it if necessary.
  /** Get a resource instance creating it if necessary. */
  private static synchronized ManagedObjectDefinitionI18NResource getInstance(
      String prefix) {
    ManagedObjectDefinitionI18NResource instance = INSTANCES.get(prefix);
@@ -97,18 +97,18 @@
  // Mapping from definition to locale-based resource bundle.
  /** Mapping from definition to locale-based resource bundle. */
  private final Map<AbstractManagedObjectDefinition<?, ?>,
    Map<Locale, ResourceBundle>> resources;
  // The resource name prefix.
  /** The resource name prefix. */
  private final String prefix;
  // Private constructor.
  /** Private constructor. */
  private ManagedObjectDefinitionI18NResource(String prefix) {
    this.resources = new HashMap<AbstractManagedObjectDefinition<?, ?>,
      Map<Locale, ResourceBundle>>();
@@ -315,8 +315,10 @@
  // Retrieve the resource bundle associated with a managed object and
  // locale, lazily loading it if necessary.
  /**
   * Retrieve the resource bundle associated with a managed object and
   * locale, lazily loading it if necessary.
   */
  private synchronized ResourceBundle getResourceBundle(
      AbstractManagedObjectDefinition<?, ?> d, Locale locale)
      throws MissingResourceException, UnsupportedOperationException {