I am looking for a way to find usage of qualified class names:
com.company.TheClass theInstance = new com.company.TheClass();
as opposed to imports:
import com.company.TheClass;
TheClass theInstance = new TheClass();
Is there a maven plugin that would help me find all usages of qualified class names against a java codabase?
edit:
Oleg kindly suggested the following link. It is very useful.
However I am just wondering how I could spot all fully qualified class name usage and not just "unnecessary" fully qualified name usage.
Some developer might for instance have for instance used private java.util.List list1;
without the corresponding import statement.
This is not considered as unnecessary by pmd but is not good practice if there is no disambiguation needed....