This commit is contained in:
Redkale
2021-01-16 18:26:08 +08:00
parent 1e3d980437
commit 1d7f32efe4

View File

@@ -33,7 +33,7 @@ public class JsonWriter extends Writer {
protected boolean tiny; protected boolean tiny;
public static ObjectPool<JsonWriter> createPool(int max) { public static ObjectPool<JsonWriter> createPool(int max) {
return new ObjectPool<>(max, (Object... params) -> new JsonWriter(), null, (JsonWriter t) -> t.recycle()); return new ObjectPool<>(max, (Object... params) -> new JsonWriter(), null, JsonWriter::recycle);
} }
public JsonWriter() { public JsonWriter() {