Class ObjectsHashCodePrimitive
java.lang.Object
eu.solven.cleanthat.engine.java.refactorer.AJavaparserMutator
eu.solven.cleanthat.engine.java.refactorer.AJavaparserExprMutator
eu.solven.cleanthat.engine.java.refactorer.mutators.ObjectsHashCodePrimitive
- All Implemented Interfaces:
IJavaparserMutator
,IMutator
,IMutatorExternalReferences
,IWalkingMutator<com.github.javaparser.ast.Node,
com.github.javaparser.ast.Node>
Turns 'Object.hashCode(1)` into `Integer.hashCode(1)`
- 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 TypeMethodDescriptionprotected boolean
processNotRecursively
(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.AJavaparserMutator
cancelDueToComment, getSimpleName, getWarnCount, isAssignableBy, isAssignableBy, isImportable, isImported, isMethodReturnUsed, messageForIssueReporting, nameOrQualifiedName, onMethodName, optResolved, optResolvedType, optResolvedType, replaceBy, replaceNode, scopeHasRequiredType, scopeHasRequiredType, tryRemove, tryReplace, typeHasRequiredType, 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, getJSparrowId, getPmdId, getPmdIds, getSeeUrls, getSonarId, getSpotBugsId, jSparrowUrl, pmdUrl, sonarUrl, spotBugsUrl
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IWalkingMutator
walkAstHasChanged
-
Constructor Details
-
ObjectsHashCodePrimitive
public ObjectsHashCodePrimitive()
-
-
Method Details
-
minimalJavaVersion
-
getErrorProneId
-
processNotRecursively
protected boolean processNotRecursively(com.github.javaparser.ast.expr.Expression expr) - Overrides:
processNotRecursively
in classAJavaparserExprMutator
-