From 661593f15f14aaf55d73c7979dab1e900ebae2af 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-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/ClassPropertyDefinition.java |   40 ++++++++++++++--------------------------
 1 files changed, 14 insertions(+), 26 deletions(-)

diff --git a/opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/ClassPropertyDefinition.java b/opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/ClassPropertyDefinition.java
index 9f51ee9..40722bf 100644
--- a/opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/ClassPropertyDefinition.java
+++ b/opendj-sdk/opendj-config/src/main/java/org/forgerock/opendj/config/ClassPropertyDefinition.java
@@ -53,10 +53,10 @@
      */
     public static final class Builder extends AbstractBuilder<String, ClassPropertyDefinition> {
 
-        // List of interfaces which property values must implement.
+        /** List of interfaces which property values must implement. */
         private List<String> instanceOfInterfaces;
 
-        // Private constructor
+        /** Private constructor. */
         private Builder(AbstractManagedObjectDefinition<?, ?> d, String propertyName) {
             super(d, propertyName);
 
@@ -84,9 +84,7 @@
             instanceOfInterfaces.add(value);
         }
 
-        /**
-         * {@inheritDoc}
-         */
+        /** {@inheritDoc} */
         @Override
         protected ClassPropertyDefinition buildInstance(AbstractManagedObjectDefinition<?, ?> d, String propertyName,
             EnumSet<PropertyOption> options, AdministratorAction adminAction,
@@ -97,7 +95,7 @@
 
     }
 
-    // Regular expression for validating class names.
+    /** Regular expression for validating class names. */
     private static final String CLASS_RE = "^([A-Za-z][A-Za-z0-9_]*\\.)*[A-Za-z][A-Za-z0-9_]*(\\$[A-Za-z0-9_]+)*$";
 
     /**
@@ -114,15 +112,15 @@
         return new Builder(d, propertyName);
     }
 
-    // Load a named class.
+    /** Load a named class. */
     private static Class<?> loadClass(String className, boolean initialize) throws ClassNotFoundException {
         return Class.forName(className, initialize, ConfigurationFramework.getInstance().getClassLoader());
     }
 
-    // List of interfaces which property values must implement.
+    /** List of interfaces which property values must implement. */
     private final List<String> instanceOfInterfaces;
 
-    // Private constructor.
+    /** Private constructor. */
     private ClassPropertyDefinition(AbstractManagedObjectDefinition<?, ?> d, String propertyName,
         EnumSet<PropertyOption> options, AdministratorAction adminAction,
         DefaultBehaviorProvider<String> defaultBehavior, List<String> instanceOfInterfaces) {
@@ -131,25 +129,19 @@
         this.instanceOfInterfaces = Collections.unmodifiableList(new LinkedList<String>(instanceOfInterfaces));
     }
 
-    /**
-     * {@inheritDoc}
-     */
+    /** {@inheritDoc} */
     @Override
     public <R, P> R accept(PropertyDefinitionVisitor<R, P> v, P p) {
         return v.visitClass(this, p);
     }
 
-    /**
-     * {@inheritDoc}
-     */
+    /** {@inheritDoc} */
     @Override
     public <R, P> R accept(PropertyValueVisitor<R, P> v, String value, P p) {
         return v.visitClass(this, value, p);
     }
 
-    /**
-     * {@inheritDoc}
-     */
+    /** {@inheritDoc} */
     @Override
     public String decodeValue(String value) {
         Reject.ifNull(value);
@@ -204,9 +196,7 @@
         return theClass.asSubclass(instanceOf);
     }
 
-    /**
-     * {@inheritDoc}
-     */
+    /** {@inheritDoc} */
     @Override
     public String normalizeValue(String value) {
         Reject.ifNull(value);
@@ -214,9 +204,7 @@
         return value.trim();
     }
 
-    /**
-     * {@inheritDoc}
-     */
+    /** {@inheritDoc} */
     @Override
     public void validateValue(String value) {
         Reject.ifNull(value);
@@ -233,7 +221,7 @@
         }
     }
 
-    /*
+    /**
      * Do some basic checks to make sure the string representation is valid.
      */
     private void validateClassName(String className) {
@@ -243,7 +231,7 @@
         }
     }
 
-    /*
+    /**
      * Make sure that named class implements the interfaces named by this
      * definition.
      */

--
Gitblit v1.10.0