File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
android/guava/src/com/google/common/base
guava/src/com/google/common/base Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments