mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-10 12:34:30 +08:00
Removing excessive synchronization
This commit is contained in:
@@ -1646,9 +1646,7 @@ public class JSONArray implements Iterable<Object> {
|
||||
@SuppressWarnings("resource")
|
||||
public String toString(int indentFactor) throws JSONException {
|
||||
StringWriter sw = new StringWriter();
|
||||
synchronized (sw.getBuffer()) {
|
||||
return this.write(sw, indentFactor, 0).toString();
|
||||
}
|
||||
return this.write(sw, indentFactor, 0).toString();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user