From 6870993d12bf8a2b9d5cd103dc5ccabc42f9bf5d Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 15 Oct 2014 15:17:11 +0000
Subject: [PATCH] AutoRefactored comments/javadocs on OpenDJ SDK
---
opendj-config/src/main/java/org/forgerock/opendj/config/ManagedObjectDefinitionI18NResource.java | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/opendj-config/src/main/java/org/forgerock/opendj/config/ManagedObjectDefinitionI18NResource.java b/opendj-config/src/main/java/org/forgerock/opendj/config/ManagedObjectDefinitionI18NResource.java
index fca5190..9bb8fa1 100644
--- a/opendj-config/src/main/java/org/forgerock/opendj/config/ManagedObjectDefinitionI18NResource.java
+++ b/opendj-config/src/main/java/org/forgerock/opendj/config/ManagedObjectDefinitionI18NResource.java
@@ -41,7 +41,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>();
@@ -67,7 +67,7 @@
return getInstance("config.profiles." + profile);
}
- // Get a resource instance creating it if necessary.
+ /** Get a resource instance creating it if necessary. */
private synchronized static ManagedObjectDefinitionI18NResource getInstance(String prefix) {
ManagedObjectDefinitionI18NResource instance = INSTANCES.get(prefix);
@@ -79,13 +79,13 @@
return instance;
}
- // 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>>();
this.prefix = prefix;
@@ -260,8 +260,10 @@
map.put(locale, resoureBundle);
}
- // 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) {
if (d.isTop()) {
throw new UnsupportedOperationException("I18n resources are not available for the "
--
Gitblit v1.10.0