diff options
Diffstat (limited to 'android/guava/src/com/google/common/collect/SortedIterable.java')
-rw-r--r-- | android/guava/src/com/google/common/collect/SortedIterable.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/android/guava/src/com/google/common/collect/SortedIterable.java b/android/guava/src/com/google/common/collect/SortedIterable.java index d46e8afcd..64ec08ef3 100644 --- a/android/guava/src/com/google/common/collect/SortedIterable.java +++ b/android/guava/src/com/google/common/collect/SortedIterable.java @@ -17,6 +17,7 @@ package com.google.common.collect; import com.google.common.annotations.GwtCompatible; import java.util.Comparator; import java.util.Iterator; +import org.checkerframework.checker.nullness.qual.Nullable; /** * An {@code Iterable} whose elements are sorted relative to a {@code Comparator}, typically @@ -25,7 +26,8 @@ import java.util.Iterator; * @author Louis Wasserman */ @GwtCompatible -interface SortedIterable<T> extends Iterable<T> { +@ElementTypesAreNonnullByDefault +interface SortedIterable<T extends @Nullable Object> extends Iterable<T> { /** * Returns the {@code Comparator} by which the elements of this iterable are ordered, or {@code * Ordering.natural()} if the elements are ordered by their natural ordering. |