Skip to content

Commit

Permalink
Suppress java/unchecked-cast-in-equals warning for JSONObject.Null.eq…
Browse files Browse the repository at this point in the history
…uals()
  • Loading branch information
artem-smotrakov committed May 31, 2021
1 parent 97023e1 commit b48abe6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/json/JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ protected final Object clone() {
* null.
*/
@Override
@SuppressWarnings("lgtm[java/unchecked-cast-in-equals]")
public boolean equals(Object object) {
return object == null || object == this;
}
Expand Down

0 comments on commit b48abe6

Please sign in to comment.