commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r490161 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/mutable/MutableBoolean.java
Date Mon, 25 Dec 2006 18:57:38 GMT
Author: bayard
Date: Mon Dec 25 10:57:37 2006
New Revision: 490161

URL: http://svn.apache.org/viewvc?view=rev&rev=490161
Log:
Rolling back r489734 - Boolean.valueOf(boolean) only available from JDK 1.4 onwards

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=490161&r1=490160&r2=490161
==============================================================================
--- 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
Mon Dec 25 10:57:37 2006
@@ -121,7 +121,9 @@
      * @return the value as a Boolean
      */
     public Object getValue() {
-        return Boolean.valueOf(this.value);
+        return new Boolean(this.value);
+// TODO: JDK 1.4+
+//        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


Mime
View raw message