Relates :
|
Patterns like string.length() == 0, string.length() != 0, string.length() > 0 and "".equals(string) are common, especially in older code. Replace with isEmpty when applicable (always for string.length() ==/!=/> 0, when string can't be null for "".equals(string)
|