io.codemodder.codemods.SwitchLiteralFirstComparisonsCodemod.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
The newest version!
{
"summary" : "Switch order of literals to prevent NullPointerException",
"change": "Switch order of literals to prevent NullPointerException",
"reviewGuidanceJustification" : "There should be no difference to code flow if the literal is first except in cases where the behavior is now fixed where a bug previously existed.",
"references" : [
"https://cwe.mitre.org/data/definitions/476.html",
"https://en.wikibooks.org/wiki/Java_Programming/Preventing_NullPointerException",
"https://rules.sonarsource.com/java/RSPEC-1132/"
]
}