diff --git a/hutool-json/src/main/java/org/dromara/hutool/json/JSON.java b/hutool-json/src/main/java/org/dromara/hutool/json/JSON.java index 9cdb5cc7c..bc24f7d5f 100644 --- a/hutool-json/src/main/java/org/dromara/hutool/json/JSON.java +++ b/hutool-json/src/main/java/org/dromara/hutool/json/JSON.java @@ -146,9 +146,7 @@ public interface JSON extends Converter, Cloneable, Serializable { */ default String toJSONString(final int indentFactor) throws JSONException { final StringWriter sw = new StringWriter(); - synchronized (sw.getBuffer()) { - return this.write(sw, indentFactor, 0, null).toString(); - } + return this.write(sw, indentFactor, 0, null).toString(); } /**