Package io.codemodder.codemods
Class HardenStringParseToPrimitivesCodemod
java.lang.Object
io.codemodder.javaparser.JavaParserChanger
io.codemodder.CompositeJavaParserChanger
io.codemodder.codemods.HardenStringParseToPrimitivesCodemod
- All Implemented Interfaces:
io.codemodder.CodeChanger
@Codemod(id="sonar:java/harden-string-parse-to-primitives-s2130",
reviewGuidance=MERGE_WITHOUT_REVIEW,
importance=LOW,
executionPriority=HIGH)
public final class HardenStringParseToPrimitivesCodemod
extends io.codemodder.CompositeJavaParserChanger
A codemod that enforces the appropriate parsing technique for converting Strings to primitive
types in the codebase.
-
Field Summary
Fields inherited from class io.codemodder.javaparser.JavaParserChanger
reporter
-
Constructor Summary
ConstructorsConstructorDescriptionHardenStringParseToPrimitivesCodemod
(io.codemodder.codemods.HardenStringParseToPrimitivesCodemod.HardenParseForConstructorChanger hardenParseForConstructorChanger, io.codemodder.codemods.HardenStringParseToPrimitivesCodemod.HardenParseForValueOfChanger hardenParseForValueOfChanger) -
Method Summary
Methods inherited from class io.codemodder.CompositeJavaParserChanger
getIncludesExcludesPattern, supports, visit
Methods inherited from class io.codemodder.javaparser.JavaParserChanger
getDescription, getIndividualChangeDescription, getReferences, getSummary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.codemodder.CodeChanger
shouldRun
-
Constructor Details
-
HardenStringParseToPrimitivesCodemod
@Inject public HardenStringParseToPrimitivesCodemod(io.codemodder.codemods.HardenStringParseToPrimitivesCodemod.HardenParseForConstructorChanger hardenParseForConstructorChanger, io.codemodder.codemods.HardenStringParseToPrimitivesCodemod.HardenParseForValueOfChanger hardenParseForValueOfChanger)
-