I have a field name which is similar to static constant
public static final String MAIL = "mail";
private String mail;
I'm getting sonar warning:
`Methods and field names should not be the same or differ only by capitalization (squid:S1845)`
Although field is instance and constant isn't a method and also static
Is it false positive sonar warning, a corner case I should suppress or is there a real issue in my code and I need to move constant outside class (or inner class)?
I found other false positive for this warning, but it was fixed, Builder pattern:
S1845 should not raise issue on builders and methods returning the field with same name