Fix javadoc warnings in binding-generator-impl 51/7151/3
authorRobert Varga <rovarga@cisco.com>
Sun, 18 May 2014 07:07:55 +0000 (09:07 +0200)
committerRobert Varga <rovarga@cisco.com>
Sun, 18 May 2014 14:29:03 +0000 (16:29 +0200)
Adds missing description to @return, fixes parameter name.

Change-Id: I1e2adb98e683ecbb49f30556ae0e7828ae37938a
Signed-off-by: Robert Varga <rovarga@cisco.com>
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/BindingGeneratorImpl.xtend
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/util/JavassistUtils.java

index 0ab2fdbc2dfd02a525fe9ed74f5a1eba68590a6d..b4362fbd8cb4a1fdc2ab107cb92347a995228cdb 100644 (file)
@@ -1631,9 +1631,9 @@ public class BindingGeneratorImpl implements BindingGenerator {
     }
 
     /**
-     * Creates the name of the getter method from <code>methodName</code>.
+     * Creates the name of the getter method name from <code>localName</code>.
      *
-     * @param methodName
+     * @param localName
      *            string with the name of the getter method
      * @param returnType return type
      * @return string with the name of the getter method for
index e19730b35ef80d2255fb6178af19990e1a1c0eb0..252fca7107953dff0ff04cc49882d48e334ee076 100644 (file)
@@ -59,11 +59,11 @@ public final class JavassistUtils {
      * created if this is a new pool. If an instance already exists, is is
      * returned.
      *
-     * @param pool
-     * @return
+     * @param pool Backing class pool
+     * @return shared utility instance for specified pool
      */
     public static synchronized JavassistUtils forClassPool(final ClassPool pool) {
-        JavassistUtils ret = INSTANCES.get(pool);
+        JavassistUtils ret = INSTANCES.get(Preconditions.checkNotNull(pool));
         if (ret == null) {
             ret = new JavassistUtils(pool, null);
             INSTANCES.put(pool, ret);