Use enum value to compare value of spotbugs parser.
@@ -33,7 +33,7 @@ class FindBugsDescriptor extends ParserDescriptor {
public IssueParser createParser(final Option... options) {
for (Option option : options) {
if (PRIORITY_OPTION_KEY.equals(option.getKey())
- && "CONFIDENCE".equals(option.getValue())) {
+ && PriorityProperty.CONFIDENCE.name().equals(option.getValue())) {
return new FindBugsParser(PriorityProperty.CONFIDENCE);
}
}
