Consistently use CharSequence.isEmpty() for emptiness checks

Closes gh-33577
This commit is contained in:
Tran Ngoc Nhan
2024-09-21 10:39:33 +07:00
committed by Sam Brannen
parent f321ef9ec2
commit c85050eb43
6 changed files with 11 additions and 11 deletions

View File

@@ -97,7 +97,7 @@ public class TypeUtils {
}
public static String upperFirst(String s) {
if (s == null || s.length() == 0) {
if (s == null || s.isEmpty()) {
return s;
}
return Character.toUpperCase(s.charAt(0)) + s.substring(1);