Skip to content

Commit

Permalink
Remove bogus nullness annotations from cl/575459262.
Browse files Browse the repository at this point in the history
(Four annotations correct out of five isn't too bad...? :))

(continuing progress toward #6567)

RELNOTES=n/a
PiperOrigin-RevId: 577928812
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Oct 30, 2023
1 parent 9e3a9fb commit 223cbf7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,6 @@ public final E pollLast() {
@Deprecated
@SuppressWarnings("MissingOverride") // only an override under JDK 21+
@DoNotCall("Always throws UnsupportedOperationException")
@CheckForNull
public final E removeFirst() {
throw new UnsupportedOperationException();
}
Expand All @@ -740,7 +739,6 @@ public final E removeFirst() {
@Deprecated
@SuppressWarnings("MissingOverride") // only an override under JDK 21+
@DoNotCall("Always throws UnsupportedOperationException")
@CheckForNull
public final E removeLast() {
throw new UnsupportedOperationException();
}
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/collect/ImmutableSortedSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,6 @@ public final E pollLast() {
@Deprecated
@SuppressWarnings("MissingOverride") // only an override under JDK 21+
@DoNotCall("Always throws UnsupportedOperationException")
@CheckForNull
public final E removeFirst() {
throw new UnsupportedOperationException();
}
Expand All @@ -808,7 +807,6 @@ public final E removeFirst() {
@Deprecated
@SuppressWarnings("MissingOverride") // only an override under JDK 21+
@DoNotCall("Always throws UnsupportedOperationException")
@CheckForNull
public final E removeLast() {
throw new UnsupportedOperationException();
}
Expand Down

0 comments on commit 223cbf7

Please sign in to comment.