[jdom-interest] XMLOutputter observations

Gordon Tyler Gordon.Tyler at quest.com
Fri Feb 27 09:43:58 PST 2004


Chris B. wrote:
> Rick Beton wrote:
> 
>> 1. lines 59...: imports with * should be expanded (to eliminate
>> non-dependencies).
> 
> I've never understood the obsession with avoiding "*".

In pathological cases, "import foobar.*" can slow down the compile.
Individual imports are also necessary to resolve ambiguities, such as
with JDK 1.5 when import javax.jms.* and java.util.* there's a clash
with a Queue class defined in both packages.

Personally, I have IntelliJ set to roll up 5 or more individual imports
into a "*".

Ciao,
Gordon



More information about the jdom-interest mailing list