Skip to content

Commit

Permalink
Remove already covered condition in JsonNull.equals() (google#2271)
Browse files Browse the repository at this point in the history
(cherry picked from commit 66d934b)
  • Loading branch information
MaicolAntali authored and tibor-universe committed Jan 18, 2023
1 parent 9f382a5 commit fef6dab
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 fef6dab

Please sign in to comment.