From 1863811a29da1d50c7f91b10c02d4490165804d4 Mon Sep 17 00:00:00 2001 From: Robi Nino Date: Thu, 10 Nov 2022 18:38:55 +0200 Subject: [PATCH] Remove custom exception for unknown violation types (#675) --- .../build/extractor/buildScanTable/BuildScanTableHelper.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/build-info-extractor/src/main/java/org/jfrog/build/extractor/buildScanTable/BuildScanTableHelper.java b/build-info-extractor/src/main/java/org/jfrog/build/extractor/buildScanTable/BuildScanTableHelper.java index e32c56712..af69a2879 100644 --- a/build-info-extractor/src/main/java/org/jfrog/build/extractor/buildScanTable/BuildScanTableHelper.java +++ b/build-info-extractor/src/main/java/org/jfrog/build/extractor/buildScanTable/BuildScanTableHelper.java @@ -62,8 +62,6 @@ private void addElement(Issue issue, InfectedFile infectedFile) { securityViolationsTable.addElement(issue, infectedFile); } else if (issueType == Issue.IssueType.LICENSE) { licenseViolationsTable.addElement(issue, infectedFile); - } else { - throw new IllegalArgumentException(String.format("Illegal issue type '%s'. Expecting either 'Security' or 'License'", issue.getType())); } } }