BUG-582: eliminate useless null checks 76/7776/1
authorRobert Varga <rovarga@cisco.com>
Fri, 6 Jun 2014 12:19:37 +0000 (14:19 +0200)
committerRobert Varga <rovarga@cisco.com>
Fri, 6 Jun 2014 12:43:37 +0000 (14:43 +0200)
commit55676f5e8a825b6b7ea78b30c348242240340008
treee0dd8c3ef7ac178dbd7c5dd8de03111b22d16aee
parent48d5dd55abc2365d8cbc46abda50dc9a40cf16d5
BUG-582: eliminate useless null checks

These checks are not useful, as the fields checked have been verified to
be non-null. Also optimizes AbstractPathArgument.hashCode() by directly
referring to the type -- we assume storing the PathArgument alongside
with the class is not going to be used very often.

Change-Id: Id3f4d67819de8462801823880e482a480843fa1e
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/InstanceIdentifier.java