Merge "BUG-1388: fixed ClassTemplate to avoid unused import of BigInteger."
authorRobert Varga <rovarga@cisco.com>
Fri, 18 Jul 2014 14:04:25 +0000 (14:04 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 18 Jul 2014 14:04:25 +0000 (14:04 +0000)
code-generator/binding-java-api-generator/src/main/java/org/opendaylight/yangtools/sal/java/api/generator/ClassTemplate.xtend

index fed70f50ea5beb0a2b7709694f2c557650be7877..eb5b94c5da742df982350567d99606116e351d2a 100644 (file)
@@ -368,12 +368,11 @@ class ClassTemplate extends BaseTemplate {
         «IF restrictions != null»
             «val prop = getPropByName("value")»
             «IF prop != null»
-                «val numberClass = prop.returnType.importedNumber»
                 «IF !(restrictions.lengthConstraints.empty)»
-                    private static «List.importedName»<«Range.importedName»<«numberClass»>> _length;
+                    private static «List.importedName»<«Range.importedName»<«prop.returnType.importedNumber»>> _length;
                 «ENDIF»
                 «IF !(restrictions.rangeConstraints.empty)»
-                    private static «List.importedName»<«Range.importedName»<«numberClass»>> _range;
+                    private static «List.importedName»<«Range.importedName»<«prop.returnType.importedNumber»>> _range;
                 «ENDIF»
             «ENDIF»
         «ENDIF»
@@ -384,7 +383,6 @@ class ClassTemplate extends BaseTemplate {
         «ENDIF»
     '''
 
-
     /**
      * Template method which generates the method <code>hashCode()</code>.
      *