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

io.codemodder.plugins.llm.BinaryThreatAnalysisAndFix Maven / Gradle / Ivy

There is a newer version: 0.97.6
Show newest version
package io.codemodder.plugins.llm;

import com.fasterxml.jackson.annotation.JsonPropertyDescription;

final class BinaryThreatAnalysisAndFix extends BinaryThreatAnalysis {

  @JsonPropertyDescription(
      "The fix as a diff patch in unified format. Required if the risk is HIGH.")
  private String fix;

  @JsonPropertyDescription("A short description of the fix. Required if the file is fixed.")
  private String fixDescription;

  public String getFix() {
    return fix;
  }

  public String getFixDescription() {
    return fixDescription;
  }

  @Override
  public String toString() {
    return "BinaryThreatAnalysisAndFix: \n"
        + "\trisk: "
        + getRisk()
        + "\n"
        + "\tanalysis: "
        + getAnalysis()
        + "\n"
        + "\tfix-description: "
        + fixDescription
        + "\n"
        + fix;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy