BUG-650: ResolveDataChangeState.inheritedOne should be a Collection 15/10915/1
authorRobert Varga <rovarga@cisco.com>
Mon, 8 Sep 2014 17:20:56 +0000 (19:20 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 8 Sep 2014 17:22:23 +0000 (19:22 +0200)
commit2c05037792ab14927d35ec913acd82c7c4fc0234
tree79df749f549d13074120b2d4a8c606ceae80eb03
parente6dd23c2db4b883052f8d026c3f4c2074e2786bc
BUG-650: ResolveDataChangeState.inheritedOne should be a Collection

There is no need to demote this to Iterable just to then use
Iterables.isEmpty(), as we are always initializing it with a collection,
which has a quick isEmpty() method. Also promote its order before
interitedSub, so the slow path can be faster a bit.

Change-Id: Ic536e2420cfae98941ec638510c98ec3a8230c09
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-inmemory-datastore/src/main/java/org/opendaylight/controller/md/sal/dom/store/impl/ResolveDataChangeState.java