This commit is contained in:
Looly
2020-04-11 13:08:46 +08:00
parent 73fd3b849f
commit bc486cdac4
207 changed files with 1329 additions and 1355 deletions

View File

@@ -25,16 +25,12 @@ public class JSONNull implements Serializable{
* @param object An object to test for nullness.
* @return true if the object parameter is the JSONObject.NULL object or null.
*/
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass")
@Override
public boolean equals(Object object) {
return object == null || (object instanceof JSONNull && object == this);
return object == null || (object == this);
}
@Override
public int hashCode() {
return super.hashCode();
}
/**
* Get the "null" string value.
*获得“null”字符串

View File

@@ -40,7 +40,7 @@ public class JSONTokener {
/**
* 源
*/
private Reader reader;
private final Reader reader;
/**
* JSON配置