Bug 4610 - Do not create duplicate declared statements 88/31188/3
authorPeter Kajsa <pkajsa@cisco.com>
Fri, 11 Dec 2015 09:41:35 +0000 (10:41 +0100)
committerPeter Kajsa <pkajsa@cisco.com>
Mon, 14 Dec 2015 13:26:31 +0000 (13:26 +0000)
commit179aa00ecdcbc9a8c1db053f07e030d7d9564221
tree66936e292682a284e21b264a60cd3ad58ecb7c52
parent78d30f73dfd2dd8a59f68ea1e19d00611f464015
Bug 4610 - Do not create duplicate declared statements

Fix of instantiation logic such that we do not produce duplicate instances
of declared statements in the same schema context.

Change-Id: If264811825760ebb39a7c911e4c68ae58cc673b5
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/DeclaredEffectiveStatementBase.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/test/Bug4610Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug4610/bar.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug4610/foo.yang [new file with mode: 0644]