Skip to content

Commit

Permalink
fix typo again
Browse files Browse the repository at this point in the history
  • Loading branch information
tofuatjava committed Jan 1, 2021
1 parent bd51f4f commit d59cb7d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/edu/hm/hafner/analysis/parser/TrivyParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
* @author Thomas Fürer - tfuerer.javanet@gmail.com
*/
public class TrivyParser extends IssueParser {
private static final String TRIVY_VULNARBILITY_LEVEL_TAG_CRITICAL = "critcal";
private static final String TRIVY_VULNARBILITY_LEVEL_TAG_HIGH = "high";
private static final String TRIVY_VULNARBILITY_LEVEL_TAG_MEDIUM = "medium";
private static final String TRIVY_VULNARBILITY_LEVEL_TAG_LOW = "low";
private static final String TRIVY_VULNERABILITY_LEVEL_TAG_CRITICAL = "critcal";
private static final String TRIVY_VULNERABILITY_LEVEL_TAG_HIGH = "high";
private static final String TRIVY_VULNERABILITY_LEVEL_TAG_MEDIUM = "medium";
private static final String TRIVY_VULNERABILITY_LEVEL_TAG_LOW = "low";
private static final long serialVersionUID = 1L;

@Override
Expand Down Expand Up @@ -66,13 +66,13 @@ private Issue convertToIssue(final JSONObject vulneratbility) {

@SuppressFBWarnings("IMPROPER_UNICODE")
private Severity mapSeverity(final String string) {
if (TRIVY_VULNARBILITY_LEVEL_TAG_LOW.equalsIgnoreCase(string)) {
if (TRIVY_VULNERABILITY_LEVEL_TAG_LOW.equalsIgnoreCase(string)) {
return Severity.WARNING_LOW;
}
else if (TRIVY_VULNARBILITY_LEVEL_TAG_MEDIUM.equalsIgnoreCase(string)) {
else if (TRIVY_VULNERABILITY_LEVEL_TAG_MEDIUM.equalsIgnoreCase(string)) {
return Severity.WARNING_NORMAL;
}
else if (TRIVY_VULNARBILITY_LEVEL_TAG_HIGH.equalsIgnoreCase(string) || TRIVY_VULNARBILITY_LEVEL_TAG_CRITICAL.equalsIgnoreCase(string)) {
else if (TRIVY_VULNERABILITY_LEVEL_TAG_HIGH.equalsIgnoreCase(string) || TRIVY_VULNERABILITY_LEVEL_TAG_CRITICAL.equalsIgnoreCase(string)) {
return Severity.WARNING_HIGH;
}
else {
Expand Down

0 comments on commit d59cb7d

Please sign in to comment.