Affects PMD Version: 6.5.0
Rule:
category/java/codestyle.xml/UnnecessaryFullyQualifiedName
Description:
If there is an implicit import (e.g. java.lang.Thread), but there is an explicit import of a class of the same name, there are false positives on redundant FQ, if there's an method invocation on the implicitly imported class.
Code Sample demonstrating the issue:
import x.y.Thread;
public class ThreadStuff {
public Thread stuff() {
return new Thread(java.lang.Thread.currentThread());
}
}
Running PMD through: Any
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4