on 10/4/2000 12:52 PM, "Diethelm Guallar, Gonzalo"
<[EMAIL PROTECTED]> wrote:

> 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 );
  }

-jon

-- 
http://scarab.tigris.org/    | http://noodle.tigris.org/
http://java.apache.org/      | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/       | http://www.sourcexchange.com/




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to