Skip to content

Commit

Permalink
Remove suppressions that are unnecessary now that our nullness checke…
Browse files Browse the repository at this point in the history
…r sees `@NonNull` on JDK APIs.

RELNOTES=n/a
PiperOrigin-RevId: 648147707
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Jun 30, 2024
1 parent a869b86 commit e549ba5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions guava/src/com/google/common/collect/Maps.java
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,6 @@ public V compute(

@Override
@CheckForNull
@SuppressWarnings("nullness") // TODO(b/262880368): Remove once we see @NonNull in JDK APIs
public V merge(
K key,
@NonNull V value,
Expand Down Expand Up @@ -3693,7 +3692,6 @@ public V compute(

@Override
@CheckForNull
@SuppressWarnings("nullness") // TODO(b/262880368): Remove once we see @NonNull in JDK APIs
public V merge(
K key,
@NonNull V value,
Expand Down
2 changes: 0 additions & 2 deletions guava/src/com/google/common/collect/Synchronized.java
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,6 @@ public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction

@Override
@CheckForNull
@SuppressWarnings("nullness") // TODO(b/262880368): Remove once we see @NonNull in JDK APIs
public V computeIfPresent(
K key, BiFunction<? super K, ? super @NonNull V, ? extends @Nullable V> remappingFunction) {
synchronized (mutex) {
Expand All @@ -1211,7 +1210,6 @@ public V compute(

@Override
@CheckForNull
@SuppressWarnings("nullness") // TODO(b/262880368): Remove once we see @NonNull in JDK APIs
public V merge(
K key,
@NonNull V value,
Expand Down

0 comments on commit e549ba5

Please sign in to comment.