Class UnnecessaryFullyQualifiedName
java.lang.Object
eu.solven.cleanthat.engine.java.refactorer.AJavaParserMutator
eu.solven.cleanthat.engine.java.refactorer.mutators.UnnecessaryFullyQualifiedName
- All Implemented Interfaces:
IMutator
,IRuleExternalReferences
Turns 'java.lang.String' into 'String'
- Author:
- Benoit Lacelle
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPmdId()
pmdUrl()
protected boolean
processNotRecursively
(com.github.javaparser.ast.Node node) Methods inherited from class eu.solven.cleanthat.engine.java.refactorer.AJavaParserMutator
getThreadJavaParser, onMethodName, optResolvedType, replaceNode, scopeHasRequiredType, scopeHasRequiredType, tryReplace, walkNode
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, walkNode
Methods inherited from interface eu.solven.cleanthat.engine.java.refactorer.meta.IRuleExternalReferences
checkstyleUrl, getCheckstyleId, getCleanthatId, getSonarId, jsparrowUrl, sonarUrl
-
Constructor Details
-
UnnecessaryFullyQualifiedName
public UnnecessaryFullyQualifiedName()
-
-
Method Details
-
minimalJavaVersion
- Specified by:
minimalJavaVersion
in interfaceIMutator
- Returns:
- the minimal JDK for which this rule is applicable. For instance, any rule related with diamond operator requires JDK1.5
-
getPmdId
- Specified by:
getPmdId
in interfaceIRuleExternalReferences
-
pmdUrl
- Specified by:
pmdUrl
in interfaceIRuleExternalReferences
-
processNotRecursively
protected boolean processNotRecursively(com.github.javaparser.ast.Node node) - Overrides:
processNotRecursively
in classAJavaParserMutator
-