io.codemodder.codemods.InputResourceLeakCodemod.report.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-codemods Show documentation
Show all versions of core-codemods Show documentation
Codemods for fixing common errors across many Java projects
{
"summary" : "Prevent resource leaks (CodeQL)",
"change": "Added a try-with-resources statement to automatically close resources",
"reviewGuidanceIJustification" : "This codemod causes resources to be cleaned up immediately after use instead of at garbage collection time, and we don't believe this change entails any risk.",
"references" : [
"https://codeql.github.com/codeql-query-help/java/java-input-resource-leak/",
"https://cwe.mitre.org/data/definitions/404.html",
"https://cwe.mitre.org/data/definitions/772.html"
]
}