diff --git a/src/main/java/edu/hm/hafner/analysis/parser/violations/SarifAdapter.java b/src/main/java/edu/hm/hafner/analysis/parser/violations/SarifAdapter.java index 95cc0d6d3..2f872bade 100644 --- a/src/main/java/edu/hm/hafner/analysis/parser/violations/SarifAdapter.java +++ b/src/main/java/edu/hm/hafner/analysis/parser/violations/SarifAdapter.java @@ -42,8 +42,7 @@ void extractAdditionalProperties(final IssueBuilder builder, final Violation vio @Override boolean isValid(final Violation violation) { - return !(violation.getSpecifics().containsKey("suppressed") - && violation.getSpecifics().get("suppressed").equals("true")); + return violation.getSpecifics().getOrDefault("suppressed", "false").equals("false"); } private String removePrefix(final String fileName) {