Removed extra call to #toLowerCase
This commit is contained in:
parent
96d59d268b
commit
fe82ccfa43
|
|
@ -63,7 +63,6 @@ public class Util {
|
|||
public static String capitalize(String string) {
|
||||
if (string.length() <= 1)
|
||||
return string.toUpperCase();
|
||||
string = string.toLowerCase();
|
||||
return string.substring(0, 1).toUpperCase() + string.toLowerCase().substring(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user