Skip to content

Commit

Permalink
Remove already covered condition in JsonNull.equals() (#2271)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaicolAntali committed Dec 6, 2022
1 parent c9c8e8f commit 66d934b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gson/src/main/java/com/google/gson/JsonNull.java
Expand Up @@ -64,6 +64,6 @@ public int hashCode() {
*/
@Override
public boolean equals(Object other) {
return this == other || other instanceof JsonNull;
return other instanceof JsonNull;
}
}

0 comments on commit 66d934b

Please sign in to comment.