commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver.Heger" <oliver.he...@oliver-heger.de>
Subject Re: svn commit: r489734 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/mutable/MutableBoolean.java
Date Sat, 23 Dec 2006 10:38:05 GMT
AFAIK the Boolean.valueOf(boolean) method is available since JDK 1.4
only. I think [lang] is intended to support earlier JDKs, too.

Oliver

bayard@apache.org wrote:
> Author: bayard
> Date: Fri Dec 22 11:31:28 2006
> New Revision: 489734
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=489734
> Log:
> new Boolean -> Boolean.valueOf. (Reported by FindBugs)
> 
> Modified:
>     jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/mutable/MutableBoolean.java
> 
> Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/mutable/MutableBoolean.java
> URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/mutable/MutableBoolean.java?view=diff&rev=489734&r1=489733&r2=489734
> ==============================================================================
> --- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/mutable/MutableBoolean.java
(original)
> +++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/mutable/MutableBoolean.java
Fri Dec 22 11:31:28 2006
> @@ -121,7 +121,7 @@
>       * @return the value as a Boolean
>       */
>      public Object getValue() {
> -        return new Boolean(this.value);
> +        return Boolean.valueOf(this.value);
>      }
>  
>      /**
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
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