From 5006d21b6e0c42dd18887c0491a23f1ae01d0ea7 Mon Sep 17 00:00:00 2001 From: VampireAchao Date: Mon, 26 Jun 2023 10:05:48 +0800 Subject: [PATCH] [fix] fix the access modifier of the parseToJson method in the AbstractJsonFieldHandler class from public to protected --- pom.xml | 2 +- .../engine/handler/AbstractJsonFieldHandler.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 6af29c297..6baaca133 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ UTF-8 8 8 - 1.9.0 + 1.9.1 3.8.1 2.22.2 3.4.0 diff --git a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/handler/AbstractJsonFieldHandler.java b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/handler/AbstractJsonFieldHandler.java index 0a3d03a61..9533e0f07 100644 --- a/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/handler/AbstractJsonFieldHandler.java +++ b/stream-plugin/stream-plugin-mybatis-plus/src/main/java/org/dromara/streamquery/stream/plugin/mybatisplus/engine/handler/AbstractJsonFieldHandler.java @@ -47,16 +47,16 @@ public void setFieldInfo(TableFieldInfo fieldInfo) { } @Override - public T parse(String json) { + protected T parse(String json) { return parse(json, tableInfo, fieldInfo); } @Override - public String toJson(T obj) { + protected String toJson(T obj) { return toJson(obj, tableInfo, fieldInfo); } - public abstract T parse(String json, TableInfo tableInfo, TableFieldInfo fieldInfo); + protected abstract T parse(String json, TableInfo tableInfo, TableFieldInfo fieldInfo); - public abstract String toJson(T obj, TableInfo tableInfo, TableFieldInfo fieldInfo); + protected abstract String toJson(T obj, TableInfo tableInfo, TableFieldInfo fieldInfo); }