Class PrimitiveWrapperInstantiation
java.lang.Object
eu.solven.cleanthat.engine.java.refactorer.AJavaparserAstMutator
eu.solven.cleanthat.engine.java.refactorer.AJavaparserNodeMutator
eu.solven.cleanthat.engine.java.refactorer.AJavaparserExprMutator
eu.solven.cleanthat.engine.java.refactorer.mutators.PrimitiveWrapperInstantiation
- All Implemented Interfaces:
ICountMutatorIssues
,IJavaparserAstMutator
,IJavaparserNodeMutator
,IMutator
,IMutatorExternalReferences
,IWalkingMutator<com.github.javaparser.ast.Node,
com.github.javaparser.ast.Node>
Turns `new Double(d)` into `Double.valueOf(d)`
- Author:
- Benoit Lacelle
-
Field Summary
Fields inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IMutator
ID_NOOP, IS_PRODUCTION_READY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPmdId()
getTags()
pmdUrl()
protected boolean
processExpression
(NodeAndSymbolSolver<com.github.javaparser.ast.expr.Expression> expr) Methods inherited from class eu.solven.cleanthat.engine.java.refactorer.AJavaparserExprMutator
processNotRecursively, replaceExpression
Methods inherited from class eu.solven.cleanthat.engine.java.refactorer.AJavaparserNodeMutator
cancelDueToComment, getNbRemoveIssues, getNbReplaceIssues, isMethodReturnUsed, logJavaParserIssue, onMethodName, optResolved, replaceNode, tryRemove, tryReplace, tryReplace
Methods inherited from class eu.solven.cleanthat.engine.java.refactorer.AJavaparserAstMutator
getNbIdempotencyIssues, messageForIssueReporting, simulateOnClone, walkAst
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IMutator
getId, getIds, isDraft, isJreOnly
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IMutatorExternalReferences
checkstyleUrl, errorProneUrl, getCheckstyleId, getCleanthatId, getErrorProneId, getJSparrowId, getPmdIds, getSeeUrls, getSonarId, getSpotBugsId, jSparrowUrl, sonarUrl, spotBugsUrl
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IWalkingMutator
walkAstHasChanged
-
Constructor Details
-
PrimitiveWrapperInstantiation
public PrimitiveWrapperInstantiation()
-
-
Method Details
-
minimalJavaVersion
-
getTags
-
getLegacyIds
-
getPmdId
-
pmdUrl
-
processExpression
protected boolean processExpression(NodeAndSymbolSolver<com.github.javaparser.ast.expr.Expression> expr) - Overrides:
processExpression
in classAJavaparserExprMutator
-