BUG-650: ResolveDataChangeState.inheritedOne should be a Collection
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)
commit6f0e13bbfe07111311d275915b1f871d4a294c34
treec997d6830dff2cee14163ef150a631dd5acc7355
parent6451d127d04b38de0c8ae7da7051deb5eda5ff6b
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