diff --git a/src/xdocs/config_coding.xml b/src/xdocs/config_coding.xml index 2b62d31af..00c855e2a 100755 --- a/src/xdocs/config_coding.xml +++ b/src/xdocs/config_coding.xml @@ -232,6 +232,8 @@ public class MySingleton
Checks that any combination of String literals with optional
assignment is on the left side of an equals() comparison.
+ The check also processes String.equalsIgnoreCase()
+ invocations (which can be suppressed).
@@ -292,6 +294,23 @@ number.equals(i + j);
+| name | +description | +type | +default value | +
|---|---|---|---|
| ignoreEqualsIgnoreCase | +whether to ignore String.equalsIgnoreCase() invocations |
+ boolean | +false | +
To configure the check: diff --git a/src/xdocs/releasenotes.xml b/src/xdocs/releasenotes.xml index 1be79ae97..3da6b409b 100755 --- a/src/xdocs/releasenotes.xml +++ b/src/xdocs/releasenotes.xml @@ -18,6 +18,12 @@ to support ignoring numbers in annotation declarations. Thanks to Julio Cesar Cabral for patch #3132984. +
String.equalsIgnoreCase()
+ invocations (which can be suppressed).
+ Bug fixes: