BUG-869: removed useless null check from DataValidationException.checkListKey 35/10435/2
authorMartin Vitez <mvitez@cisco.com>
Thu, 28 Aug 2014 09:46:25 +0000 (11:46 +0200)
committerMartin Vitez <mvitez@cisco.com>
Thu, 28 Aug 2014 11:27:12 +0000 (13:27 +0200)
commit2b0d716bc51e0f27b019179d89129584d34f1dad
tree25063e7a87b0d2e1c3e41169de3e35d4eade2c7e
parent5f66ed5f0c66b00ffbe1136adb269b97fae8fda6
BUG-869: removed useless null check from DataValidationException.checkListKey

Null check is useless because

1. it is already performed in call to overloaded checkListKey
2. value is already dereferenced and if it were null a NullPointerException would have occurred

Expression 'if (isLegal == false)' simplified to 'if (!isLegal)'.

Change-Id: I7bf332e99e35d283726e439caf1d2a39a17df932
Signed-off-by: Martin Vitez <mvitez@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/builder/impl/valid/DataValidationException.java