mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 02:35:33 +08:00
Suppress java/unchecked-cast-in-equals warning for JSONObject.Null.equals()
This commit is contained in:
@@ -128,6 +128,7 @@ public class JSONObject {
|
||||
* null.
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("lgtm[java/unchecked-cast-in-equals]")
|
||||
public boolean equals(Object object) {
|
||||
return object == null || object == this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user