io.codemodder.plugins.llm.BinaryThreatAnalysisAndFix Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codemodder-plugin-llm Show documentation
Show all versions of codemodder-plugin-llm Show documentation
Codemod plugin for augmenting transformation with LLM assisted analysis and fixes
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;
}
}