io.codemodder.codemods.JDBCResourceLeakCodemod.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 database resource leaks (CodeQL)",
"change": "Added a try-with-resources statement to automatically close database resources",
"reviewGuidanceIJustification" : "This codemod causes database resources to be cleaned up immediately after use instead of at garbage collection time, and we don't believe this change entails any risk.\n\n",
"references" : [
"https://codeql.github.com/codeql-query-help/java/java-database-resource-leak/",
"https://cwe.mitre.org/data/definitions/404.html",
"https://cwe.mitre.org/data/definitions/772.html"
]
}