From 76b3486c0ace5fc31e500bfda8a91c16de378825 Mon Sep 17 00:00:00 2001 From: Oliver Burn Date: Sat, 1 Jan 2011 12:13:43 +1100 Subject: [PATCH] Added the documentation missing in the patch. --- src/xdocs/config_coding.xml | 19 +++++++++++++++++++ src/xdocs/releasenotes.xml | 6 ++++++ 2 files changed, 25 insertions(+) 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);

+ + + + + + + + + + + + + + +
namedescriptiontypedefault value
ignoreEqualsIgnoreCasewhether to ignore String.equalsIgnoreCase() invocationsbooleanfalse
+
+

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. +

  • + Enhanced + EqualsAvoidNull + to process String.equalsIgnoreCase() + invocations (which can be suppressed). +
  • Bug fixes: