io.codemodder.codemods.SwitchToStandardCharsetsCodemod.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" : "Switch to StandardCharsets fields instead of strings",
"change": "Switched to pointers instead of String lookups for charset retrieval",
"reviewGuidanceJustification" : "Because the `String`-based lookup this code replaces throws `IOException`, and the new code doesn't, it may be necessary to make a linter happy by removing the `throws` clause from the method signature in some situations.",
"references" : [
"https://community.sonarsource.com/t/use-standardcharsets-instead-of-charset-names/638",
"https://github.com/pmd/pmd/issues/3190"
]
}