rules.StringLiteralEquality.md Maven / Gradle / Ivy
Checks that string literals are not used with `==` or `!=`.
Valid:
````
if ("something".equals(x)) {}
````
Invalid:
````
if (x == "something") {}
````
© 2015 - 2024 Weber Informatics LLC | Privacy Policy