geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel J. Bergman" <n...@devtech.com>
Subject RE: Coding standards: import thing.* or thing.Class?
Date Wed, 13 Aug 2003 17:22:05 GMT
Alex Blewitt wrote:
> Has anyone got any preferences between using:
>
> import java.util.*
>
> or
>
> import java.util.Vector
> import java.util.Enumeration

Personally, in most cases I find that the actual pattern is something like:

  import java.util.Collection;

  Collection mywhatever;

  mywhatever = new java.util.SOME_COLLECTION_TYPE(...);

I do not bother to import the specialized class used only once.  I do import
the base type that is part of the interface.

	--- Noel


Mime
View raw message