MDSAL-218: Binding v1 - *Builder classes for 'type union' YANG gen. code should have...
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / main / java / org / opendaylight / mdsal / binding / java / api / generator / UnionBuilderTemplate.xtend
old mode 100644 (file)
new mode 100755 (executable)
index 49fa104..5f660f0
@@ -27,6 +27,9 @@ class UnionBuilderTemplate extends ClassTemplate {
     def override body() '''
         «wrapToDocumentation(formatDataForJavaDoc(type, getClarification()))»
         public class «type.name» {
+            private «type.name»() {
+                //Exists only to defeat instantiation.
+            }
 
             «generateMethods»