Use YangInstanceIdentifier.isEmpty() 65/71565/4
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 30 Apr 2018 09:06:26 +0000 (11:06 +0200)
committerStephen Kitt <skitt@redhat.com>
Mon, 30 Apr 2018 15:16:14 +0000 (15:16 +0000)
commit39550906e07020e085844bfdf770854da9d37117
tree1d1850bf398b214a7ce12a56b11685d4bf0ced2d
parent401577076374485afea34caeb33bce474563f752
Use YangInstanceIdentifier.isEmpty()

This is a faster way of checking if an InstanceIdentifier is empty
than comparison to a constant.

Change-Id: I095576cdf1ac522348f3befaa8b14e84feaddf1c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionProxy.java