turbine-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henning P. Schmiedehausen" <...@intermeta.de>
Subject Re: cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/util ObjectUtils.java
Date Wed, 13 Aug 2003 08:40:39 GMT
epugh@apache.org writes:

>  -            return o;
>  -        }
>  +		return org.apache.commons.lang.ObjectUtils.defaultIfNull(o,dflt);

-1

We have this radically new stuff called "import", you know. ;-)

Do you really see a reason for these patches? I don't see no reason to
beat on the dead horse? We simple fix up all the users of this method
and then drop them out in the 2.4-dev cycle.


	Regards
		Henning


>       }
>   
>       /**
>  @@ -237,23 +230,11 @@
>        * @param o1 The first object.
>        * @param o2 The second object.
>        * @return True if the values of both xstrings are the same.
>  -     * @deprecated No replacement
>  +     * @deprecated Use org.apache.commons.lang.ObjectUtils.equals()
>        */
>       public static boolean equals(Object o1, Object o2)
>       {
>  -        if (o1 == null)
>  -        {
>  -            return (o2 == null);
>  -        }
>  -        else if (o2 == null)
>  -        {
>  -            // o1 is not null
>  -            return false;
>  -        }
>  -        else
>  -        {
>  -            return o1.equals(o2);
>  -        }
>  +		return org.apache.commons.lang.ObjectUtils.equals(o1,o2);
>       }
>   
>       /**
>  
>  
>  

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

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!" 
      -- AOL CD when played backwards  (User Friendly - 200-10-15)

Mime
View raw message