Skip to content

Commit 66d934b

Browse files
authored
Remove already covered condition in JsonNull.equals() (#2271)
1 parent c9c8e8f commit 66d934b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gson/src/main/java/com/google/gson/JsonNull.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ public int hashCode() {
6464
*/
6565
@Override
6666
public boolean equals(Object other) {
67-
return this == other || other instanceof JsonNull;
67+
return other instanceof JsonNull;
6868
}
6969
}

0 commit comments

Comments
 (0)