From 1b9b0941309b24427cbfe9031997997c37f1aede Mon Sep 17 00:00:00 2001 From: Looly Date: Tue, 7 Nov 2023 09:57:47 +0800 Subject: [PATCH] add Serializable --- .../java/org/dromara/hutool/json/convert/JSONConverter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hutool-json/src/main/java/org/dromara/hutool/json/convert/JSONConverter.java b/hutool-json/src/main/java/org/dromara/hutool/json/convert/JSONConverter.java index 486f24735..2b6c1eb9f 100644 --- a/hutool-json/src/main/java/org/dromara/hutool/json/convert/JSONConverter.java +++ b/hutool-json/src/main/java/org/dromara/hutool/json/convert/JSONConverter.java @@ -32,6 +32,7 @@ import org.dromara.hutool.json.*; import org.dromara.hutool.json.serialize.JSONDeserializer; import org.dromara.hutool.json.serialize.JSONStringer; +import java.io.Serializable; import java.lang.reflect.Type; import java.time.temporal.TemporalAccessor; import java.util.Collection; @@ -49,7 +50,9 @@ import java.util.Map; * @author looly * @since 6.0.0 */ -public class JSONConverter implements Converter { +public class JSONConverter implements Converter, Serializable { + private static final long serialVersionUID = 1L; + /** * 单例 */