Shift Builder<P> from toInstance() to build()
[yangtools.git] / code-generator / maven-sal-api-gen-plugin / src / main / java / org / opendaylight / yangtools / yang / unified / doc / generator / GeneratorImpl.xtend
index 672f26eb1e04f3087e3063f12e9d5b9aa12ec56c..62f628c50f5f23593d3672d948de69ad94d5a9f6 100644 (file)
@@ -754,7 +754,7 @@ class GeneratorImpl {
 
     def CharSequence tree(Module module) '''
         «strong(module.name)»
-        «module.childNodes.treeSet(YangInstanceIdentifier.builder.toInstance())»
+        «module.childNodes.treeSet(YangInstanceIdentifier.builder.build())»
     '''
 
     private def dispatch CharSequence tree(ChoiceNode node,YangInstanceIdentifier path) '''
@@ -794,7 +794,7 @@ class GeneratorImpl {
         «IF !childNodes.nullOrEmpty»
             <h2>Child nodes</h2>
 
-            «childNodes.printChildren(3,YangInstanceIdentifier.builder().toInstance())»
+            «childNodes.printChildren(3,YangInstanceIdentifier.builder().build())»
         «ENDIF»
     '''