Reports .equals() being called to compare a String with an empty string. Using .isEmpty() is more clear and could be slightly more performant.

The check like "".equals(str) returns false when str is null, so an explicit null-check could be inserted when replacing with isEmpty(). Use a checkbox below to suppress warning when value could be nullable.