mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -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”字符串
|
||||
|
@@ -40,7 +40,7 @@ public class JSONTokener {
|
||||
/**
|
||||
* 源
|
||||
*/
|
||||
private Reader reader;
|
||||
private final Reader reader;
|
||||
|
||||
/**
|
||||
* JSON配置
|
||||
|
Reference in New Issue
Block a user