Use ImmutableSortedSet for small ImmutableUnsignedLongSets
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / utils / MutableUnsignedLongSet.java
index e8e479c7987d98818938815fd350dd61431157bd..e455f90d890fa279eba78cbef905978e3a517834 100644 (file)
@@ -27,7 +27,7 @@ public final class MutableUnsignedLongSet extends UnsignedLongSet implements Mut
 
     @Override
     public ImmutableUnsignedLongSet immutableCopy() {
-        return ImmutableUnsignedLongSet.of(copyRanges());
+        return ImmutableUnsignedLongSet.copyOf(this);
     }
 
     public void add(final long longBits) {