We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfb0d01 commit 52b727aCopy full SHA for 52b727a
1 file changed
google-cloud-core/src/main/java/com/google/cloud/NoCredentials.java
@@ -40,9 +40,11 @@ public static NoCredentials getInstance() {
40
41
@Override
42
public boolean equals(Object obj) {
43
- if (!(obj instanceof NoCredentials)) {
44
- return false;
45
- }
46
return this == obj;
47
}
+
+ @Override
+ public int hashCode() {
48
+ return System.identityHashCode(this);
49
+ }
50
0 commit comments