File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
android/guava/src/com/google/common/base
guava/src/com/google/common/base Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 3030 */
3131@ GwtCompatible
3232public final class Objects extends ExtraObjectsMethodsForWeb {
33- private Objects () {}
3433
3534 /**
3635 * Determines whether two possibly-null objects are equal. Returns:
@@ -47,6 +46,7 @@ private Objects() {}
4746 *
4847 * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use {@link
4948 * java.util.Objects#equals} instead.
49+ *
5050 */
5151 public static boolean equal (@ Nullable Object a , @ Nullable Object b ) {
5252 return java .util .Objects .equals (a , b );
@@ -72,9 +72,12 @@ 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+ *
7576 */
7677 @ SuppressWarnings ("nullness" ) // https://github.com/jspecify/jdk/pull/127
7778 public static int hashCode (@ Nullable Object @ Nullable ... objects ) {
7879 return java .util .Objects .hash (objects );
7980 }
81+
82+ private Objects () {}
8083}
Original file line number Diff line number Diff line change 3030 */
3131@ GwtCompatible
3232public final class Objects extends ExtraObjectsMethodsForWeb {
33- private Objects () {}
3433
3534 /**
3635 * Determines whether two possibly-null objects are equal. Returns:
@@ -47,6 +46,7 @@ private Objects() {}
4746 *
4847 * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use {@link
4948 * java.util.Objects#equals} instead.
49+ *
5050 */
5151 public static boolean equal (@ Nullable Object a , @ Nullable Object b ) {
5252 return java .util .Objects .equals (a , b );
@@ -72,9 +72,12 @@ 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+ *
7576 */
7677 @ SuppressWarnings ("nullness" ) // https://github.com/jspecify/jdk/pull/127
7778 public static int hashCode (@ Nullable Object @ Nullable ... objects ) {
7879 return java .util .Objects .hash (objects );
7980 }
81+
82+ private Objects () {}
8083}
You can’t perform that action at this time.
0 commit comments