Invoke equals() on a constant reference 35/21335/2
authorRobert Varga <rovarga@cisco.com>
Thu, 28 May 2015 14:54:54 +0000 (16:54 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 1 Jun 2015 10:50:07 +0000 (10:50 +0000)
commit1e51b859a08cfdda436fb12d0cf55dd89f00213b
tree6144e140aea64f344ef41b6789dacbd1a1c499a9
parent02e503a09314f2e3192b85ed9fccaff5efb4942c
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>
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java