Reports cases when .equals() is called to compare a String with an empty string. In this case, using .isEmpty() is better as it shows you exactly what you're checking.

"".equals(str) returns false when str is null. For safety, this inspection's quick fix inserts an explicit null-check when the equals() argument is nullable. Use the checkbox below to suppress the warning in this case.