mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 00:17:04 +00:00
perf[util]: 优化trim,减少计算量
This commit is contained in:
1 parent
1e3f3654d4
commit
3bc0826fb1
1 file changed
+1
-1
@@ -179,7 +179,7 @@ public abstract class StringUtils {
|
||||
}
|
||||
|
||||
public static String trim(String str) {
|
||||
if (StringUtils.isBlank(str)) {
|
||||
if (isEmpty(str)) {
|
||||
return EMPTY;
|
||||
}
|
||||
return str.trim();
|
||||
|
||||
Reference in new issue
Block a user