Skip to content

Commit

Permalink
Add a missing nullness annotation.
Browse files Browse the repository at this point in the history
I should have added this during cl/591014189.

RELNOTES=n/a
PiperOrigin-RevId: 592328114
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Dec 19, 2023
1 parent 5eda11b commit c7dcd6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/guava/src/com/google/common/collect/Iterators.java
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ private static final class SingletonIterator<T extends @Nullable Object>
extends UnmodifiableIterator<T> {
private static final Object SENTINEL = new Object();

private Object valueOrSentinel;
private @Nullable Object valueOrSentinel;

SingletonIterator(T value) {
this.valueOrSentinel = value;
Expand Down
2 changes: 1 addition & 1 deletion guava/src/com/google/common/collect/Iterators.java
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ private static final class SingletonIterator<T extends @Nullable Object>
extends UnmodifiableIterator<T> {
private static final Object SENTINEL = new Object();

private Object valueOrSentinel;
private @Nullable Object valueOrSentinel;

SingletonIterator(T value) {
this.valueOrSentinel = value;
Expand Down

0 comments on commit c7dcd6e

Please sign in to comment.