From 4719a349dd787d4ed053222ec9261e17a576a643 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Fri, 11 Jul 2025 21:41:18 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/top/continew/starter/core/constant/CharConstants.java | 3 ++- .../top/continew/starter/core/constant/StringConstants.java | 3 ++- .../top/continew/starter/core/util/validation/CheckUtils.java | 3 ++- .../continew/starter/core/util/validation/ValidationUtils.java | 3 ++- .../starter/data/handler/CompositeBaseEnumTypeHandler.java | 3 ++- .../starter/data/handler/MybatisBaseEnumTypeHandler.java | 3 ++- .../top/continew/starter/data/service/impl/ServiceImpl.java | 1 + .../starter/excel/converter/ExcelBaseEnumConverter.java | 3 ++- .../continew/starter/extension/crud/annotation/TreeField.java | 1 + .../extension/crud/autoconfigure/CrudTreeProperties.java | 1 + .../starter/json/jackson/serializer/BaseEnumDeserializer.java | 3 ++- .../starter/json/jackson/serializer/BaseEnumSerializer.java | 3 ++- .../continew/starter/trace/autoconfigure/TLogProperties.java | 3 ++- .../top/continew/starter/trace/filter/TLogServletFilter.java | 3 ++- .../java/top/continew/starter/trace/handler/TLogWebCommon.java | 3 ++- 15 files changed, 27 insertions(+), 12 deletions(-) diff --git a/continew-starter-core/src/main/java/top/continew/starter/core/constant/CharConstants.java b/continew-starter-core/src/main/java/top/continew/starter/core/constant/CharConstants.java index e6b5d058..37837273 100644 --- a/continew-starter-core/src/main/java/top/continew/starter/core/constant/CharConstants.java +++ b/continew-starter-core/src/main/java/top/continew/starter/core/constant/CharConstants.java @@ -19,9 +19,10 @@ package top.continew.starter.core.constant; /** * 字符相关常量 * + * @see cn.hutool.core.text.CharPool + * * @author looly(Hutool) * @author Charles7c - * @see cn.hutool.core.text.CharPool * @since 2.7.3 */ public class CharConstants { diff --git a/continew-starter-core/src/main/java/top/continew/starter/core/constant/StringConstants.java b/continew-starter-core/src/main/java/top/continew/starter/core/constant/StringConstants.java index 7d200d7f..cf7c4417 100644 --- a/continew-starter-core/src/main/java/top/continew/starter/core/constant/StringConstants.java +++ b/continew-starter-core/src/main/java/top/continew/starter/core/constant/StringConstants.java @@ -19,9 +19,10 @@ package top.continew.starter.core.constant; /** * 字符串相关常量 * + * @see cn.hutool.core.text.StrPool + * * @author looly(Hutool) * @author Charles7c - * @see cn.hutool.core.text.StrPool * @since 1.0.0 */ public class StringConstants { diff --git a/continew-starter-core/src/main/java/top/continew/starter/core/util/validation/CheckUtils.java b/continew-starter-core/src/main/java/top/continew/starter/core/util/validation/CheckUtils.java index bc848697..5c662935 100644 --- a/continew-starter-core/src/main/java/top/continew/starter/core/util/validation/CheckUtils.java +++ b/continew-starter-core/src/main/java/top/continew/starter/core/util/validation/CheckUtils.java @@ -25,8 +25,9 @@ import java.util.function.BooleanSupplier; /** * 业务参数校验工具类(抛出 500 ServiceException) * - * @author Charles7c * @see BusinessException + * + * @author Charles7c * @since 1.0.0 */ public class CheckUtils extends Validator { diff --git a/continew-starter-core/src/main/java/top/continew/starter/core/util/validation/ValidationUtils.java b/continew-starter-core/src/main/java/top/continew/starter/core/util/validation/ValidationUtils.java index 32fb1d51..d8e289e4 100644 --- a/continew-starter-core/src/main/java/top/continew/starter/core/util/validation/ValidationUtils.java +++ b/continew-starter-core/src/main/java/top/continew/starter/core/util/validation/ValidationUtils.java @@ -24,8 +24,9 @@ import java.util.function.BooleanSupplier; /** * 基本参数校验工具类(抛出 400 BadRequestException) * + * @see top.continew.starter.core.exception.BadRequestException + * * @author Charles7c - * @see BadRequestException * @since 1.0.0 */ public class ValidationUtils extends Validator { diff --git a/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/handler/CompositeBaseEnumTypeHandler.java b/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/handler/CompositeBaseEnumTypeHandler.java index a1a06802..561452f8 100644 --- a/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/handler/CompositeBaseEnumTypeHandler.java +++ b/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/handler/CompositeBaseEnumTypeHandler.java @@ -33,9 +33,10 @@ import java.util.concurrent.ConcurrentHashMap; /** * 复合枚举类型处理器(扩展 BaseEnum 支持) * + * @see com.baomidou.mybatisplus.core.handlers.CompositeEnumTypeHandler + * * @author miemie(MyBatis Plus) * @author Charles7c - * @see com.baomidou.mybatisplus.core.handlers.CompositeEnumTypeHandler * @since 2.7.3 */ public class CompositeBaseEnumTypeHandler> implements TypeHandler { diff --git a/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/handler/MybatisBaseEnumTypeHandler.java b/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/handler/MybatisBaseEnumTypeHandler.java index b911a524..c7beca19 100644 --- a/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/handler/MybatisBaseEnumTypeHandler.java +++ b/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/handler/MybatisBaseEnumTypeHandler.java @@ -45,9 +45,10 @@ import java.util.concurrent.ConcurrentHashMap; /** * 枚举类型处理器(扩展 BaseEnum 支持) * + * @see com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler + * * @author hubin(MyBatis Plus) * @author Charles7c - * @see com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler * @since 2.4.0 */ public class MybatisBaseEnumTypeHandler> extends BaseTypeHandler { diff --git a/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/service/impl/ServiceImpl.java b/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/service/impl/ServiceImpl.java index 2523fc04..542a4ed6 100644 --- a/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/service/impl/ServiceImpl.java +++ b/continew-starter-data/continew-starter-data-mp/src/main/java/top/continew/starter/data/service/impl/ServiceImpl.java @@ -55,6 +55,7 @@ import java.util.function.Function; *

将 MP 的 {@link CrudRepository} 迁移至本类中,减少两层继承,解决层级过多出现 Sonar 警告的问题

* * @see CrudRepository + * * @param Mapper 接口 * @param 实体类型 * @author hubin (MyBatis Plus) diff --git a/continew-starter-excel/continew-starter-excel-fastexcel/src/main/java/top/continew/starter/excel/converter/ExcelBaseEnumConverter.java b/continew-starter-excel/continew-starter-excel-fastexcel/src/main/java/top/continew/starter/excel/converter/ExcelBaseEnumConverter.java index 181a76c9..c7b47981 100644 --- a/continew-starter-excel/continew-starter-excel-fastexcel/src/main/java/top/continew/starter/excel/converter/ExcelBaseEnumConverter.java +++ b/continew-starter-excel/continew-starter-excel-fastexcel/src/main/java/top/continew/starter/excel/converter/ExcelBaseEnumConverter.java @@ -28,8 +28,9 @@ import top.continew.starter.core.enums.BaseEnum; /** * Easy Excel 枚举接口转换器 * - * @author Charles7c * @see BaseEnum + * + * @author Charles7c * @since 1.2.0 */ public class ExcelBaseEnumConverter implements Converter> { diff --git a/continew-starter-extension/continew-starter-extension-crud/continew-starter-extension-crud-core/src/main/java/top/continew/starter/extension/crud/annotation/TreeField.java b/continew-starter-extension/continew-starter-extension-crud/continew-starter-extension-crud-core/src/main/java/top/continew/starter/extension/crud/annotation/TreeField.java index 3c1dc75c..cb22a4ad 100644 --- a/continew-starter-extension/continew-starter-extension-crud/continew-starter-extension-crud-core/src/main/java/top/continew/starter/extension/crud/annotation/TreeField.java +++ b/continew-starter-extension/continew-starter-extension-crud/continew-starter-extension-crud-core/src/main/java/top/continew/starter/extension/crud/annotation/TreeField.java @@ -29,6 +29,7 @@ import java.lang.annotation.*; * * @see cn.hutool.core.lang.tree.TreeNodeConfig * @see CrudTreeProperties + * * @author Charles7c * @since 1.0.0 */ diff --git a/continew-starter-extension/continew-starter-extension-crud/continew-starter-extension-crud-core/src/main/java/top/continew/starter/extension/crud/autoconfigure/CrudTreeProperties.java b/continew-starter-extension/continew-starter-extension-crud/continew-starter-extension-crud-core/src/main/java/top/continew/starter/extension/crud/autoconfigure/CrudTreeProperties.java index ab18271f..a7c90e48 100644 --- a/continew-starter-extension/continew-starter-extension-crud/continew-starter-extension-crud-core/src/main/java/top/continew/starter/extension/crud/autoconfigure/CrudTreeProperties.java +++ b/continew-starter-extension/continew-starter-extension-crud/continew-starter-extension-crud-core/src/main/java/top/continew/starter/extension/crud/autoconfigure/CrudTreeProperties.java @@ -28,6 +28,7 @@ import top.continew.starter.extension.crud.annotation.TreeField; *

* * @see TreeField + * * @author Charles7c * @since 2.7.2 */ diff --git a/continew-starter-json/continew-starter-json-jackson/src/main/java/top/continew/starter/json/jackson/serializer/BaseEnumDeserializer.java b/continew-starter-json/continew-starter-json-jackson/src/main/java/top/continew/starter/json/jackson/serializer/BaseEnumDeserializer.java index 6c81f4a2..b96ce1f9 100644 --- a/continew-starter-json/continew-starter-json-jackson/src/main/java/top/continew/starter/json/jackson/serializer/BaseEnumDeserializer.java +++ b/continew-starter-json/continew-starter-json-jackson/src/main/java/top/continew/starter/json/jackson/serializer/BaseEnumDeserializer.java @@ -32,8 +32,9 @@ import java.util.Objects; /** * 枚举接口 BaseEnum 反序列化器 * - * @author Charles7c * @see BaseEnum + * + * @author Charles7c * @since 2.4.0 */ @JacksonStdImpl diff --git a/continew-starter-json/continew-starter-json-jackson/src/main/java/top/continew/starter/json/jackson/serializer/BaseEnumSerializer.java b/continew-starter-json/continew-starter-json-jackson/src/main/java/top/continew/starter/json/jackson/serializer/BaseEnumSerializer.java index dcdcffbb..c5bfaf83 100644 --- a/continew-starter-json/continew-starter-json-jackson/src/main/java/top/continew/starter/json/jackson/serializer/BaseEnumSerializer.java +++ b/continew-starter-json/continew-starter-json-jackson/src/main/java/top/continew/starter/json/jackson/serializer/BaseEnumSerializer.java @@ -27,8 +27,9 @@ import java.io.IOException; /** * 枚举接口 BaseEnum 序列化器 * - * @author Charles7c * @see BaseEnum + * + * @author Charles7c * @since 2.4.0 */ @JacksonStdImpl diff --git a/continew-starter-trace/src/main/java/top/continew/starter/trace/autoconfigure/TLogProperties.java b/continew-starter-trace/src/main/java/top/continew/starter/trace/autoconfigure/TLogProperties.java index 656cabb4..ccc4cc3b 100644 --- a/continew-starter-trace/src/main/java/top/continew/starter/trace/autoconfigure/TLogProperties.java +++ b/continew-starter-trace/src/main/java/top/continew/starter/trace/autoconfigure/TLogProperties.java @@ -23,9 +23,10 @@ package top.continew.starter.trace.autoconfigure; * 重写 TLog 配置以适配 Spring Boot 3.x *

* + * @see com.yomahub.tlog.springboot.property.TLogProperty + * * @author Bryan.Zhang * @author Jasmine - * @see com.yomahub.tlog.springboot.property.TLogProperty * @since 1.3.0 */ public class TLogProperties { diff --git a/continew-starter-trace/src/main/java/top/continew/starter/trace/filter/TLogServletFilter.java b/continew-starter-trace/src/main/java/top/continew/starter/trace/filter/TLogServletFilter.java index 3741f9e9..82547aba 100644 --- a/continew-starter-trace/src/main/java/top/continew/starter/trace/filter/TLogServletFilter.java +++ b/continew-starter-trace/src/main/java/top/continew/starter/trace/filter/TLogServletFilter.java @@ -33,9 +33,10 @@ import java.io.IOException; * 重写 TLog 配置以适配 Spring Boot 3.x *

* + * @see com.yomahub.tlog.web.filter.TLogServletFilter + * * @author Bryan.Zhang * @author Jasmine - * @see com.yomahub.tlog.web.filter.TLogServletFilter * @since 1.3.0 */ public class TLogServletFilter implements Filter { diff --git a/continew-starter-trace/src/main/java/top/continew/starter/trace/handler/TLogWebCommon.java b/continew-starter-trace/src/main/java/top/continew/starter/trace/handler/TLogWebCommon.java index 2f190d07..e747f221 100644 --- a/continew-starter-trace/src/main/java/top/continew/starter/trace/handler/TLogWebCommon.java +++ b/continew-starter-trace/src/main/java/top/continew/starter/trace/handler/TLogWebCommon.java @@ -28,9 +28,10 @@ import jakarta.servlet.http.HttpServletRequest; * 重写 TLog 配置以适配 Spring Boot 3.x *

* + * @see com.yomahub.tlog.web.common.TLogWebCommon + * * @author Bryan.Zhang * @author Jasmine - * @see com.yomahub.tlog.web.common.TLogWebCommon * @since 1.3.0 */ public class TLogWebCommon extends TLogRPCHandler {