Class AvoidInlineConditionals
java.lang.Object
eu.solven.cleanthat.engine.java.refactorer.AJavaparserAstMutator
eu.solven.cleanthat.engine.java.refactorer.AJavaparserNodeMutator
eu.solven.cleanthat.engine.java.refactorer.mutators.AvoidInlineConditionals
- All Implemented Interfaces:
ICountMutatorIssues
,IJavaparserAstMutator
,IJavaparserNodeMutator
,IMutator
,IMutatorExternalReferences
,IWalkingMutator<com.github.javaparser.ast.Node,
com.github.javaparser.ast.Node>
Turns 'boolean b = (x > 1 ) ? true : callback.doIt() || true' into 'if (x > 1) { ... } else { ...}'
- 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 TypeMethodDescriptiongetTags()
boolean
isDraft()
protected boolean
processNotRecursively
(NodeAndSymbolSolver<?> node) 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, isJreOnly, minimalJavaVersion
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IMutatorExternalReferences
errorProneUrl, getCleanthatId, getErrorProneId, getJSparrowId, getLegacyIds, getPmdId, getPmdIds, getSeeUrls, getSpotBugsId, jSparrowUrl, pmdUrl, sonarUrl, spotBugsUrl
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IWalkingMutator
walkAstHasChanged
-
Constructor Details
-
AvoidInlineConditionals
public AvoidInlineConditionals()
-
-
Method Details
-
isDraft
public boolean isDraft() -
getTags
-
getSonarId
-
getCheckstyleId
-
checkstyleUrl
-
processNotRecursively
- Overrides:
processNotRecursively
in classAJavaparserNodeMutator
-