You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Thomas Mahler <th...@web.de> on 2003/06/02 15:08:28 UTC

just say no to unused imports !

Dear committers,

I just removed several unused import statements.
Sure, an unused import statement is not a big deal.
But some time ago we agreed to keep our code free of them.

So, when you check in some code, please make sure there are no unused 
imports in it.

Another common problem with import statements:
To provide JDK 1.2 compatibility we ship a special proxy.jar that 
contains a JDK1.2 replacement of the JDK1.3 and later dynamic proxies.

To enable the usage of these proxies we use preprocessor switches that 
activate the proper import statements, as in the following example:

//#ifdef JDK13
import java.lang.reflect.Proxy;
//#else
/*
import com.develop.java.lang.reflect.Proxy;
*/
//#endif

If a file contains such a section, please do not use IDE features like 
"organize imports" in Eclipse. They won't care for the switches and make 
the file unusable for JDK1.2.

Thanks!
Thomas