From 3304965840c139dae7b8c01e1779a806641a0159 Mon Sep 17 00:00:00 2001 From: Allon Mureinik Date: Sat, 1 Apr 2017 11:44:39 +0300 Subject: [PATCH] FindBugs exclude filter for StringUtils Exclude ES_COMPARING_PARAMETER_STRING_WITH_EQ FindBugs warnings from StringUtils methods compare(String, String, boolean) and compareIgnoreCase(String, String, boolean). The usages of the == operator seem to be intentional optimizations similar to the usage in indexOfDifference. If this reasoning is ever overruled, this suppression should be removed. --- findbugs-exclude-filter.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/findbugs-exclude-filter.xml b/findbugs-exclude-filter.xml index def3ec884..f7623dfd3 100644 --- a/findbugs-exclude-filter.xml +++ b/findbugs-exclude-filter.xml @@ -58,7 +58,11 @@ - + + + + +