commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r646589 - /commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/Constant.java
Date Wed, 09 Apr 2008 23:17:11 GMT
Author: mbenson
Date: Wed Apr  9 16:17:10 2008
New Revision: 646589

URL: http://svn.apache.org/viewvc?rev=646589&view=rev
Log:
unnecessary Boolean instantiation

Modified:
    commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/Constant.java

Modified: commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/Constant.java
URL: http://svn.apache.org/viewvc/commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/Constant.java?rev=646589&r1=646588&r2=646589&view=diff
==============================================================================
--- commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/Constant.java
(original)
+++ commons/sandbox/functor/trunk/src/main/java/org/apache/commons/functor/core/Constant.java
Wed Apr  9 16:17:10 2008
@@ -60,7 +60,7 @@
      * @param value boolean
      */
     public Constant(boolean value) {
-        this(new Boolean(value));
+        this(value ? Boolean.TRUE : Boolean.FALSE);
     }
 
     /**



Mime
View raw message