Class UnnecessaryFullyQualifiedName

All Implemented Interfaces:
ICountMutatorIssues, IJavaparserAstMutator, IJavaparserNodeMutator, IMutator, IMutatorExternalReferences, IWalkingMutator<com.github.javaparser.ast.Node,com.github.javaparser.ast.Node>

public class UnnecessaryFullyQualifiedName extends AJavaparserNodeMutator
This will remove unnecessary fully qualified type reference, typically because given type if imported. For instance, it will turns 'java.lang.String' into 'String' as `java.lang` is already imported. It assumes there is no class in current package with same name as some class in a wildcard imported package (especially `java.lang`). (e.g. https://www.baeldung.com/java-classes-same-name)
Author:
Benoit Lacelle