In the java source I do not want to use any kind of package. For example, I do not want to refer to swing, or io, or to another.
Is there a system for checking that at compile time or during testing?
For example, with alleged annotation
@NoPackage("javax.swing") class Foo { private JFrame fram;
Why do I need it?
Because I have an application with a swing, and I want to reorganize it with the part that uses swing, and the other, which is not there, because I want to port it to other ui files (web, pda, etc.).
Thanks.
Isstao
source share