Skip to content

Commit

Permalink
fixed PMD warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dtbaum committed Jul 28, 2023
1 parent 41d43e7 commit a61d5dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/edu/hm/hafner/analysis/parser/GrypeParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private Issue getIssue(final IssueBuilder issueBuilder, final JSONObject match)
String fileName = match.getJSONObject(ARTIFACT_TAG).getJSONArray(LOCATIONS_TAG).getJSONObject(0)
.getString(PATH_TAG);

Issue issue = issueBuilder.setFileName(fileName)
return issueBuilder.setFileName(fileName)
.setCategory(vuln.getString(SEVERITY_TAG))
.setSeverity(Severity.guessFromString(vuln.getString(SEVERITY_TAG)))
.setType(vuln.getString(ID_TAG))
Expand All @@ -56,6 +56,5 @@ private Issue getIssue(final IssueBuilder issueBuilder, final JSONObject match)
.withHref(vuln.getString(DATA_SOURCE_TAG))
.withText(vuln.getString(DATA_SOURCE_TAG))).render())
.build();
return issue;
}
}

0 comments on commit a61d5dd

Please sign in to comment.