Invoke equals() on a constant reference 71/21971/3
authorRobert Varga <rovarga@cisco.com>
Thu, 28 May 2015 14:54:54 +0000 (16:54 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 5 Jun 2015 21:08:53 +0000 (21:08 +0000)
commit964763224f513eb1963a69f8b335b35ba4437850
tree5f00ae0554ef053ec97675a9716a75442e1a4f3c
parenta7d959b110c01fecc87222ba2ddf47d382a5073d
Invoke equals() on a constant reference

Inverting how we perform the equality check makes it obvious that the
invoked method is bound to a specific class object, helping compiler
just a tiny bit.

Change-Id: Ia8209f50143b0c3af71a962ab2a3ab167396836f
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit 1e51b859a08cfdda436fb12d0cf55dd89f00213b)
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java