All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.sonar.model.Hotspot Maven / Gradle / Ivy

There is a newer version: 0.98.0
Show newest version
package io.codemodder.sonar.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.codemodder.sonar.model.update.FindingSeverity;

/** Represents a Sonar "hotspot". */
public final class Hotspot extends SonarFinding {

  @JsonProperty("securityCategory")
  private String securityCategory;

  @JsonProperty("ruleKey")
  private String ruleKey;

  @JsonProperty("vulnerabilityProbability")
  private FindingSeverity vulnerabilityProbability;

  public FindingSeverity getVulnerabilityProbability() {
    return vulnerabilityProbability;
  }

  public String getSecurityCategory() {
    return securityCategory;
  }

  public String getRuleKey() {
    return ruleKey;
  }

  @Override
  public String typeName() {
    return "hotspots";
  }

  @Override
  public String rule() {
    return ruleKey;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy