commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject svn commit: r491052 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/mutable/MutableBoolean.java
Date Fri, 29 Dec 2006 17:16:38 GMT
Author: scolebourne
Date: Fri Dec 29 09:16:37 2006
New Revision: 491052

URL: http://svn.apache.org/viewvc?view=rev&rev=491052
Log:
Avoid new Boolean() via BooleanUtils

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=491052&r1=491051&r2=491052
==============================================================================
--- 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 29 09:16:37 2006
@@ -19,6 +19,8 @@
 
 import java.io.Serializable;
 
+import org.apache.commons.lang.BooleanUtils;
+
 /**
  * A mutable <code>boolean</code> wrapper.
  * 
@@ -121,9 +123,7 @@
      * @return the value as a Boolean
      */
     public Object getValue() {
-        return new Boolean(this.value);
-// TODO: JDK 1.4+
-//        return Boolean.valueOf(this.value);
+        return BooleanUtils.toBooleanObject(this.value);
     }
 
     /**



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