Community
Participate
Working Groups
Should be available on fully qualified class identifiers and remove the package qualifiers, as well as inserting the proper import, if not already available.
You know that you can press CTRL + Shift + M (add import) on a qualified type reference to do that?
No, I didn't know. Thanks! :)
CTRL + Shift + M does the trick
*** Bug 209467 has been marked as a duplicate of this bug. ***
Just in case anyone finds this page by Googling looking for a tool to do this in bulk, note http://blog.mi-ernst.de/projekte/ .. (I've NO IDEA if that still works, just stumbled upon this; and using CTRL + Shift + M is good enough for me.) PS: Apparently PMD may be able to detect "Unnecessary fully qualified name" (UnnecessaryFullyQualifiedName), somehow. So may Checkstyle in the future, see https://github.com/sevntu-checkstyle/sevntu.checkstyle/issues/462.