Fix for Bug 241. 91/3691/1
authorMartin Vitez <mvitez@cisco.com>
Fri, 13 Dec 2013 08:15:36 +0000 (09:15 +0100)
committerMartin Vitez <mvitez@cisco.com>
Fri, 13 Dec 2013 08:15:36 +0000 (09:15 +0100)
Removed redundant variable from getLength method.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
code-generator/binding-java-api-generator/src/main/java/org/opendaylight/yangtools/sal/java/api/generator/ClassTemplate.xtend

index 5f001d8401c043ad819c9348340e8ec4a55aa2ed..4504d2161698ee3abe79d658e03e9646fd6b9ee1 100644 (file)
@@ -426,7 +426,6 @@ class ClassTemplate extends BaseTemplate {
         «IF restrictions != null && !(restrictions.lengthConstraints.empty)»\r
             public static «List.importedName»<«Range.importedName»<Integer>> getLength() {\r
                 final «List.importedName»<«Range.importedName»<Integer>> result = new «ArrayList.importedName»<>();\r
-                «List.importedName»<«Range.importedName»<«Integer.importedName»>> lengthConstraints = new «ArrayList.importedName»<>(); \r
                 «FOR r : restrictions.lengthConstraints»\r
                     result.add(«Range.importedName».closed(«r.min», «r.max»));\r
                 «ENDFOR»\r