BUG-6522: Remove an unneeded branch 94/47594/3
authorRobert Varga <rovarga@cisco.com>
Tue, 25 Oct 2016 18:06:45 +0000 (20:06 +0200)
committerAnil Belur <abelur@linuxfoundation.org>
Sun, 30 Oct 2016 11:41:48 +0000 (11:41 +0000)
commitfd79ee1fa169f1ceab339abb377afc08ba29f2e3
tree3ba3f04a807da40251f105e659ecfd1121ee7b56
parent4e6f543113c39b77354c6ca6c573af4076a11524
BUG-6522: Remove an unneeded branch

Instead of maintaining a boolean in an else branch,
examine the resulting collection to see if there is
anything left. Simplifies and speeds up the code.

Change-Id: Ie87c5f845b866e6637a6af0e43cb2153d8e05363
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit e6e603a9fac4c40e09d71ae7db5d0d777fdb38ff)
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/ModifierImpl.java