Skip to content

Commit 0d70b3b

Browse files
klueverGoogle Java Core Libraries
authored andcommitted
Internal change.
RELNOTES=n/a PiperOrigin-RevId: 780585878
1 parent 1b15b40 commit 0d70b3b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
*/
3131
@GwtCompatible
3232
public 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
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
*/
3131
@GwtCompatible
3232
public 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
}

0 commit comments

Comments
 (0)