更新
This commit is contained in:
@@ -354,7 +354,8 @@ public class JSONArray {
|
||||
return jo;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
@Override
|
||||
public String toString() {
|
||||
try {
|
||||
return '[' + this.join(",") + ']';
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -15,7 +15,8 @@ public class JSONException extends Exception {
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
public Throwable getCause() {
|
||||
@Override
|
||||
public Throwable getCause() {
|
||||
return this.cause;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,15 +19,18 @@ public class JSONObject {
|
||||
|
||||
private static final class Null {
|
||||
|
||||
protected final Object clone() {
|
||||
@Override
|
||||
protected final Object clone() {
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean equals(Object object) {
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
return object == null || object == this;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "null";
|
||||
}
|
||||
}
|
||||
@@ -702,7 +705,8 @@ public class JSONObject {
|
||||
return ja;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
@Override
|
||||
public String toString() {
|
||||
try {
|
||||
return this.toString(0);
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -8,7 +8,8 @@ public class JSONStringer extends JSONWriter {
|
||||
super(new StringWriter());
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.mode == 'd' ? this.writer.toString() : null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -280,7 +280,8 @@ public class JSONTokener {
|
||||
return new JSONException(message + this.toString());
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
@Override
|
||||
public String toString() {
|
||||
return " at " + this.index + " [character " + this.character + " line " +
|
||||
this.line + "]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user