Do not duplicate candidate list 45/35545/3
authorRobert Varga <rovarga@cisco.com>
Mon, 29 Feb 2016 11:45:52 +0000 (12:45 +0100)
committerRobert Varga <rovarga@cisco.com>
Mon, 7 Mar 2016 16:29:38 +0000 (17:29 +0100)
commit0000f31baa84721fa2aebca37f8e5b352e002e4e
treec34c609cf9fff14698c7fc569be0159804cdbb78
parent538d086ee1b4c98c93fc10e7239a15b94a63de21
Do not duplicate candidate list

Iterables.getLast() provides an efficient way of getting the last item
from a collection, without the need to duplicate it.

Change-Id: I49b0bc827bffc0adb616cf516438bad7526ad141
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/entityownership/selectionstrategy/LastCandidateSelectionStrategy.java