From 9bee01baa394fb0822e8d132ddf701408ed36239 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Mon, 20 May 2024 22:57:13 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cache/BehaviorCaptchaCacheAutoConfiguration.java | 2 +- .../main/java/top/continew/starter/core/util/StrUtils.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/continew-starter-captcha/continew-starter-captcha-behavior/src/main/java/top/continew/starter/captcha/behavior/autoconfigure/cache/BehaviorCaptchaCacheAutoConfiguration.java b/continew-starter-captcha/continew-starter-captcha-behavior/src/main/java/top/continew/starter/captcha/behavior/autoconfigure/cache/BehaviorCaptchaCacheAutoConfiguration.java index c56d5ec0..b7ee5deb 100644 --- a/continew-starter-captcha/continew-starter-captcha-behavior/src/main/java/top/continew/starter/captcha/behavior/autoconfigure/cache/BehaviorCaptchaCacheAutoConfiguration.java +++ b/continew-starter-captcha/continew-starter-captcha-behavior/src/main/java/top/continew/starter/captcha/behavior/autoconfigure/cache/BehaviorCaptchaCacheAutoConfiguration.java @@ -42,7 +42,7 @@ import top.continew.starter.core.constant.PropertiesConstants; * @author Charles7c * @since 1.1.0 */ -@AutoConfiguration() +@AutoConfiguration public class BehaviorCaptchaCacheAutoConfiguration { private static final Logger log = LoggerFactory.getLogger(BehaviorCaptchaCacheAutoConfiguration.class); diff --git a/continew-starter-core/src/main/java/top/continew/starter/core/util/StrUtils.java b/continew-starter-core/src/main/java/top/continew/starter/core/util/StrUtils.java index 22622c03..5a710bc3 100644 --- a/continew-starter-core/src/main/java/top/continew/starter/core/util/StrUtils.java +++ b/continew-starter-core/src/main/java/top/continew/starter/core/util/StrUtils.java @@ -36,11 +36,11 @@ public class StrUtils { * * @param str 要转换的字符串 * @param defaultValue 默认值 - * @param mapping 针对字符串的转换方法 + * @param mapper 针对字符串的转换方法 * @return 转换后的字符串或指定的默认字符串 * @since 2.0.1 */ - public static T blankToDefault(CharSequence str, T defaultValue, Function mapping) { - return CharSequenceUtil.isBlank(str) ? defaultValue : mapping.apply(str.toString()); + public static T blankToDefault(CharSequence str, T defaultValue, Function mapper) { + return CharSequenceUtil.isBlank(str) ? defaultValue : mapper.apply(str.toString()); } }