Fix mandatory statement checking 14/49814/3
authorRobert Varga <rovarga@cisco.com>
Mon, 26 Dec 2016 16:34:10 +0000 (17:34 +0100)
committerRobert Varga <rovarga@cisco.com>
Wed, 4 Jan 2017 12:47:27 +0000 (13:47 +0100)
commit09755fe9c958f3b10e49ec533a589fb0ad60545d
tree107fe7b9b629bc5f67dedc1bb9811c6b41ac01cd
parent7e1ba48bdb68a82a0b4c98a231bbb65f74172262
Fix mandatory statement checking

This fixes a mismatch between the comment and what the method
actually does. For some reason we ended up iterating over the same
collection twice.

Furthermore use .forEach() with a self-referencing lambda instead
of Iterables.concat(), as that can be optimized by the implementation.

Change-Id: I6f74794fd58576b9ce34b6f27217b5e81bef4457
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/AugmentStatementImpl.java