Consistently use CharSequence.isEmpty() for emptiness checks
Closes gh-33577
This commit is contained in:
committed by
Sam Brannen
parent
f321ef9ec2
commit
c85050eb43
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user