diff options
Diffstat (limited to 'guava/src/com/google/common/collect/AbstractSortedSetMultimap.java')
-rw-r--r-- | guava/src/com/google/common/collect/AbstractSortedSetMultimap.java | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java b/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java index ac74155..2be5f4b 100644 --- a/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java +++ b/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java @@ -19,8 +19,6 @@ package com.google.common.collect; import com.google.common.annotations.GwtCompatible; import java.util.Collection; -import java.util.Collections; -import java.util.Comparator; import java.util.Map; import java.util.SortedSet; @@ -28,7 +26,7 @@ import javax.annotation.Nullable; /** * Basic implementation of the {@link SortedSetMultimap} interface. It's a - * wrapper around {@link AbstractMapBasedMultimap} that converts the returned + * wrapper around {@link AbstractMultimap} that converts the returned * collections into sorted sets. The {@link #createCollection} method * must return a {@code SortedSet}. * @@ -47,18 +45,7 @@ abstract class AbstractSortedSetMultimap<K, V> super(map); } - @Override - abstract SortedSet<V> createCollection(); - - @Override - SortedSet<V> createUnmodifiableEmptyCollection() { - Comparator<? super V> comparator = valueComparator(); - if (comparator == null) { - return Collections.unmodifiableSortedSet(createCollection()); - } else { - return ImmutableSortedSet.emptySet(valueComparator()); - } - } + @Override abstract SortedSet<V> createCollection(); // Following Javadoc copied from Multimap and SortedSetMultimap. @@ -101,7 +88,7 @@ abstract class AbstractSortedSetMultimap<K, V> * <p>Any duplicates in {@code values} will be stored in the multimap once. */ @Override public SortedSet<V> replaceValues( - @Nullable K key, Iterable<? extends V> values) { + K key, Iterable<? extends V> values) { return (SortedSet<V>) super.replaceValues(key, values); } |