Jon Stevens wrote:
> 
> on 3/23/01 8:05 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 
> > Modified:    src/java/org/apache/velocity/texen Generator.java
> > Log:
> > - fully qualifying import statements
> >
> 
> I'm not objecting at all...but...
> 
> Just curious, why do we do this?
> 
> -jon

For standard java utilties like Hashtable you know where it
comes from. But if you have something like.

import org.x.util.*;
import org.y.util.*;
import org.z.util.*;

Then it's hard to know where a class lives if you
want to take a look at the source and see how it
works. Plus you avoid cases of ambiguity where to
classes in different packages have the same name.
But mostly I like it because you know where things
live and can track them down if you wish without
having to poke around in a bunch of different
hierarchies to find what you're looking for.

-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine
http://tambora.zenplex.org

Reply via email to