Updated union builder template to throw an exception in getDefaultInstance instead...
authorMartin Vitez <mvitez@cisco.com>
Mon, 16 Dec 2013 14:57:44 +0000 (15:57 +0100)
committerMartin Vitez <mvitez@cisco.com>
Mon, 16 Dec 2013 14:57:44 +0000 (15:57 +0100)
Signed-off-by: Martin Vitez <mvitez@cisco.com>
code-generator/binding-java-api-generator/src/main/java/org/opendaylight/yangtools/sal/java/api/generator/UnionBuilderTemplate.xtend

index 50eb0b62b7d9502b872132c1e15549416767a2d4..3b97954df982577326f59a4bb318c90e2470d9da 100644 (file)
@@ -30,7 +30,7 @@ class UnionBuilderTemplate extends ClassTemplate {
         «FOR method : genTO.methodDefinitions»
             «method.accessModifier.accessModifier»«IF method.static»static«ENDIF»«IF method.final» final«ENDIF» «method.
             returnType.importedName» «method.name»(«method.parameters.generateParameters») {\r
-                return null;\r
+                throw new «UnsupportedOperationException.importedName»("Not yet implemented");\r
             }\r
         «ENDFOR»
     '''