Merge "Extract typedefs to local variable to avoid error in xtend generated class."
authorTony Tkacik <ttkacik@cisco.com>
Mon, 23 Jun 2014 16:16:52 +0000 (16:16 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 23 Jun 2014 16:16:52 +0000 (16:16 +0000)
code-generator/maven-sal-api-gen-plugin/src/main/java/org/opendaylight/yangtools/yang/unified/doc/generator/GeneratorImpl.xtend

index 18fb86126e220765a0812737c6334c38ef2b0a07..3225300ebb8f15ed87e9e5f442fade10abcaa0ae 100644 (file)
@@ -649,7 +649,8 @@ class GeneratorImpl {
                 «ENDFOR»
                 </ul>
                 <ul>
-                «FOR typeDef : dataNode.typeDefinitions»
+                «val Set<TypeDefinition<?>> typedefs = dataNode.typeDefinitions»
+                «FOR typeDef : typedefs»
                     «typeDef.restrictions»
                 «ENDFOR»
                 </ul>