From dff48b64ec7dabcec1149c18568e0e6824a5a704 Mon Sep 17 00:00:00 2001 From: wsy <28511238@qq.com> Date: Fri, 25 Sep 2020 09:46:26 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E5=A6=82=E6=9E=9C=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=A1=A8=E7=9A=84=E5=AD=97=E6=AE=B5=E6=98=AF=E9=A6=96?= =?UTF-8?q?=E5=AD=97=E6=AF=8D=E5=A4=A7=E5=86=99=E7=9A=84=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E4=B8=94=E6=B2=A1=E6=9C=89=E7=94=A8=E4=B8=8B=E5=88=92=E7=BA=BF?= =?UTF-8?q?=E5=88=86=E5=89=B2=EF=BC=88=E6=AF=94=E5=A6=82=E5=AD=97=E6=AE=B5?= =?UTF-8?q?PrjID=EF=BC=89=EF=BC=8C=E4=BC=9A=E5=AF=BC=E8=87=B4=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E7=94=A8=E5=A4=A7=E5=86=99=E9=A6=96=E5=AD=97=E6=AF=8D?= =?UTF-8?q?=E4=BD=9C=E4=B8=BA=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?domain=E7=9A=84=E5=B1=9E=E6=80=A7=E5=90=8D=E3=80=82=20=E8=80=8C?= =?UTF-8?q?=E8=BF=99=E7=A7=8D=E6=83=85=E5=86=B5=E4=B8=8B=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=9A=84controller=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9Ejson?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=97=B6=EF=BC=8C=E4=BC=9A=E5=AF=B9=E9=A6=96?= =?UTF-8?q?=E5=AD=97=E6=AF=8D=E8=87=AA=E5=8A=A8=E8=BD=AC=E5=B0=8F=E5=86=99?= =?UTF-8?q?(=E8=BF=94=E5=9B=9E=E7=9A=84json=E4=B8=AD=E5=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C=E6=9C=AA?= =?UTF-8?q?=E4=BA=A7=E7=94=9F=E5=AE=9E=E9=99=85=E9=97=AE=E9=A2=98=E3=80=82?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 1f0d4abe --- .../com/ruoyi/common/utils/StringUtils.java | 42 ++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java index ea774ff91..19b825c8b 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java @@ -6,7 +6,7 @@ import com.ruoyi.common.core.text.StrFormatter; /** * 字符串工具类 - * + * * @author ruoyi */ public class StringUtils extends org.apache.commons.lang3.StringUtils @@ -19,7 +19,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * 获取参数不为空值 - * + * * @param value defaultValue 要判断的value * @return value 返回值 */ @@ -30,7 +30,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * * 判断一个Collection是否为空, 包含List,Set,Queue - * + * * @param coll 要判断的Collection * @return true:为空 false:非空 */ @@ -41,7 +41,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * * 判断一个Collection是否非空,包含List,Set,Queue - * + * * @param coll 要判断的Collection * @return true:非空 false:空 */ @@ -52,7 +52,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * * 判断一个对象数组是否为空 - * + * * @param objects 要判断的对象数组 ** @return true:为空 false:非空 */ @@ -63,7 +63,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * * 判断一个对象数组是否非空 - * + * * @param objects 要判断的对象数组 * @return true:非空 false:空 */ @@ -74,7 +74,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * * 判断一个Map是否为空 - * + * * @param map 要判断的Map * @return true:为空 false:非空 */ @@ -85,7 +85,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * * 判断一个Map是否为空 - * + * * @param map 要判断的Map * @return true:非空 false:空 */ @@ -96,7 +96,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * * 判断一个字符串是否为空串 - * + * * @param str String * @return true:为空 false:非空 */ @@ -107,7 +107,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * * 判断一个字符串是否为非空串 - * + * * @param str String * @return true:非空串 false:空串 */ @@ -118,7 +118,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * * 判断一个对象是否为空 - * + * * @param object Object * @return true:为空 false:非空 */ @@ -129,7 +129,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * * 判断一个对象是否非空 - * + * * @param object Object * @return true:非空 false:空 */ @@ -140,7 +140,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * * 判断一个对象是否是数组类型(Java基本型别的数组) - * + * * @param object 对象 * @return true:是数组 false:不是数组 */ @@ -159,7 +159,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * 截取字符串 - * + * * @param str 字符串 * @param start 开始 * @return 结果 @@ -190,7 +190,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * 截取字符串 - * + * * @param str 字符串 * @param start 开始 * @param end 结束 @@ -242,7 +242,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils * 通常使用:format("this is {} for {}", "a", "b") -> this is a for b
* 转义{}: format("this is \\{} for {}", "a", "b") -> this is \{} for a
* 转义\: format("this is \\\\{} for {}", "a", "b") -> this is \a for b
- * + * * @param template 文本模板,被替换的部分用 {} 表示 * @param params 参数值 * @return 格式化后的文本 @@ -306,7 +306,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * 是否包含字符串 - * + * * @param str 验证字符串 * @param strs 字符串组 * @return 包含返回true @@ -328,7 +328,7 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils /** * 将下划线大写方式命名的字符串转换为驼峰式。如果转换前的下划线大写方式命名的字符串为空,则返回空字符串。 例如:HELLO_WORLD->HelloWorld - * + * * @param name 转换前的下划线大写方式命名的字符串 * @return 转换后的驼峰式命名的字符串 */ @@ -374,12 +374,6 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils } if (s.indexOf(SEPARATOR) == -1) { - if (s.length()>0 && Character.isUpperCase(s.charAt(0))) { - StringBuilder sb = new StringBuilder(s.length()); - sb.append(Character.toLowerCase(s.charAt(0))); - sb.append(s.substring(1)); - return sb.toString(); - } return s; } s = s.toLowerCase();