X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Futils%2FImmutableUnsignedLongSet.java;fp=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Futils%2FImmutableUnsignedLongSet.java;h=47b8a8b01552dc3fee3c7ad34a2fd5783b395e03;hp=af49065e00e8192693df1036600623ee2573d5c9;hb=245165804cb8c11340fa5b225e5cccbe32c01337;hpb=1a13d6e1410df52e3b8fd9d4fe6b6e7b04490e4a diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ImmutableUnsignedLongSet.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ImmutableUnsignedLongSet.java index af49065e00..47b8a8b015 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ImmutableUnsignedLongSet.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ImmutableUnsignedLongSet.java @@ -36,9 +36,9 @@ public final class ImmutableUnsignedLongSet extends UnsignedLongSet implements I return of(); } if (mutable.size() <= ARRAY_MAX_ELEMENTS) { - return new ImmutableUnsignedLongSet(ImmutableSortedSet.copyOf(mutable.copiedRanges())); + return new ImmutableUnsignedLongSet(ImmutableSortedSet.copyOfSorted(mutable.trustedRanges())); } - return new ImmutableUnsignedLongSet(new TreeSet<>(mutable.copiedRanges())); + return new ImmutableUnsignedLongSet(new TreeSet<>(mutable.trustedRanges())); } public static @NonNull ImmutableUnsignedLongSet of() {