Skip to content

Commit 6990a19

Browse files
klueverGoogle Java Core Libraries
authored andcommitted
Internal change.
RELNOTES=n/a PiperOrigin-RevId: 785456335
1 parent 5ebd9f3 commit 6990a19

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

android/guava/src/com/google/common/base/Objects.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public final class Objects extends ExtraObjectsMethodsForWeb {
4646
*
4747
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use {@link
4848
* java.util.Objects#equals} instead.
49-
*
5049
*/
50+
@SuppressWarnings("InlineMeSuggester") // would introduce fully qualified references to Objects
5151
public static boolean equal(@Nullable Object a, @Nullable Object b) {
5252
return java.util.Objects.equals(a, b);
5353
}
@@ -72,9 +72,11 @@ public static boolean equal(@Nullable Object a, @Nullable Object b) {
7272
*
7373
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use {@link
7474
* java.util.Objects#hash} instead.
75-
*
7675
*/
77-
@SuppressWarnings("nullness") // https://github.com/jspecify/jdk/pull/127
76+
@SuppressWarnings({
77+
"nullness", // https://github.com/jspecify/jdk/pull/127
78+
"InlineMeSuggester", // would introduce fully qualified references to Objects
79+
})
7880
public static int hashCode(@Nullable Object @Nullable ... objects) {
7981
return java.util.Objects.hash(objects);
8082
}

guava/src/com/google/common/base/Objects.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public final class Objects extends ExtraObjectsMethodsForWeb {
4646
*
4747
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use {@link
4848
* java.util.Objects#equals} instead.
49-
*
5049
*/
50+
@SuppressWarnings("InlineMeSuggester") // would introduce fully qualified references to Objects
5151
public static boolean equal(@Nullable Object a, @Nullable Object b) {
5252
return java.util.Objects.equals(a, b);
5353
}
@@ -72,9 +72,11 @@ public static boolean equal(@Nullable Object a, @Nullable Object b) {
7272
*
7373
* <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use {@link
7474
* java.util.Objects#hash} instead.
75-
*
7675
*/
77-
@SuppressWarnings("nullness") // https://github.com/jspecify/jdk/pull/127
76+
@SuppressWarnings({
77+
"nullness", // https://github.com/jspecify/jdk/pull/127
78+
"InlineMeSuggester", // would introduce fully qualified references to Objects
79+
})
7880
public static int hashCode(@Nullable Object @Nullable ... objects) {
7981
return java.util.Objects.hash(objects);
8082
}

0 commit comments

Comments
 (0)