Merge "BUG-1954: Fix useless Boolean instantiation"
authorRobert Varga <rovarga@cisco.com>
Wed, 22 Oct 2014 19:51:49 +0000 (19:51 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 22 Oct 2014 19:51:49 +0000 (19:51 +0000)
code-generator/binding-java-api-generator/src/main/java/org/opendaylight/yangtools/sal/java/api/generator/ClassTemplate.xtend

index e0e056bf2eb8d08a988a173eb2312f34d97f1a24..e7400f9ff6865d0f78bfdb83af20283b0ad40920 100644 (file)
@@ -342,7 +342,7 @@ class ClassTemplate extends BaseTemplate {
         int i = 0;
         return new «genTO.name»(
         «FOR prop : allProperties SEPARATOR ","»
-            properties.get(i++).equals(defaultValue) ? new «Boolean.importedName»("true") : null
+            properties.get(i++).equals(defaultValue) ? «Boolean.importedName».TRUE : null
         «ENDFOR»
         );
     '''