commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Colebourne <scolebou...@btopenworld.com>
Subject Re: [collections] VOTE: Collections-java5 direction
Date Sun, 11 Mar 2007 21:34:35 GMT
> For example. if we're really going to push the boat out on this, what 
> about hiding public constructors in static utility classes? It's the 
> sort of thing CheckStyle whines about, and normally with good reason. 
> I've never understood why CollectionUtils#CollectionUtils is public, 
> even with a comment along the lines of "should not normally be used". If 
> every method is static (and the class is therefore potentially 
> finalised), when would it ever be used?

Tools like Velocity need an instance as they can't handle static methods.

Stephen

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message