/guava/android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java
E[] sortedElements = Arrays.copyOf( sortedElements, length) ;
E[] sortedElements = Arrays.copyOf ( elements, length ) ;
forceCopyElements = false; } private void dedupAndCoalesce(boolean maybeExpand) { if (length == 0) { return; } <extra_id_0> Arrays.sort(sortedElements, comparator); int uniques = 1; for (int i = 1; i < sortedElements.length; i++) { if (comparator.compare(sortedElements[uniques - 1], sortedElements[i]) < 0) { sortedElements[uniques] = sortedElements[i]; uniques++;