coveritys copy paste analysis is awsome - identified a real bug that has been fixed

Former-commit-id: bccecaef9181eeb60a79873ebefc6f8ead259f71
This commit is contained in:
Jeremy Long
2014-03-31 21:32:38 -04:00
parent 1c30e555dc
commit 76a0c1d96e

View File

@@ -164,7 +164,7 @@ public class SuppressionHandler extends DefaultHandler {
pt.setRegex(Boolean.parseBoolean(regex));
}
final String caseSensitive = currentAttributes.getValue("caseSensitive");
if (regex != null) {
if (caseSensitive != null) {
pt.setCaseSensitive(Boolean.parseBoolean(caseSensitive));
}
}