commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1510364 - /commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/BooleanConverters.java
Date Mon, 05 Aug 2013 02:21:56 GMT
Author: ggregory
Date: Mon Aug  5 02:21:55 2013
New Revision: 1510364

URL: http://svn.apache.org/r1510364
Log:
Fix boxing.

Modified:
    commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/BooleanConverters.java

Modified: commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/BooleanConverters.java
URL: http://svn.apache.org/viewvc/commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/BooleanConverters.java?rev=1510364&r1=1510363&r2=1510364&view=diff
==============================================================================
--- commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/BooleanConverters.java
(original)
+++ commons/sandbox/convert/trunk/src/main/java/org/apache/commons/convert/BooleanConverters.java
Mon Aug  5 02:21:55 2013
@@ -50,7 +50,7 @@ public class BooleanConverters implement
          * <code>false</code> if <code>obj</code> is zero.
          */
         public Boolean convert(Integer obj) throws ConversionException {
-             return obj.intValue() == 0 ? false : true;
+             return obj.intValue() == 0 ? Boolean.FALSE : Boolean.TRUE;
         }
     }
 



Mime
View raw message