Fix warnings when we are augmenting-in a list 29/92529/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 21 Sep 2020 10:48:07 +0000 (12:48 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 21 Sep 2020 15:20:06 +0000 (15:20 +0000)
commitd84fa6b23333c0aae1d8e2f053cf32b8c50ab6e0
tree17e91d8136f35d7c7cdefc16b89fc9ecfa86ba0b
parentfb1d1685be4152070a7a2631914ed84cfc2d4b07
Fix warnings when we are augmenting-in a list

When we are targetting a non-configuration list we end up issuing
a warning because the augment content contains the list as well --
and is not suppressed. Add logic to suppress it.

JIRA: YANGTOOLS-1133
Change-Id: I55e43d39949db756634e86e4e570df6bbbce6c1f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit c6510cf99fff6bd27c1abcc66e78558c9f8df713)
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/list/AbstractListStatementSupport.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/YT1133Test.java [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT1133/bar.yang [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT1133/foo.yang [new file with mode: 0644]