> > Where would this go? Or should I just write those lines
> > everywhere it's needed (bad form)?
>
> we have a new class for that which would be _perfect_...
>
> org.apache.turbine.util.ObjectUtils.java
>
> also, it would be "void" not "boolean" and 4 spaces indentation...ie:
>
> public static void addOnce(Vector v, Object o)
> {
> if (! v.contains( o ))
> v.addElement( o );
> }
Ok, I'm about to commit this. Another (related) question:
there is an equals() method in om/BaseObject that seems to
be a perfect candidate to be moved into ObjectUtils. Should
I move it there? If yes, should that be done on a separate
commit than the addOnce() one?
> -jon
Thanks for the hand-holding,
--
Gonzalo A. Diethelm
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]