commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1171964 - in /commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils: AsyncQueryRunner.java BeanProcessor.java
Date Sat, 17 Sep 2011 12:20:06 GMT
Author: sebb
Date: Sat Sep 17 12:20:06 2011
New Revision: 1171964

URL: http://svn.apache.org/viewvc?rev=1171964&view=rev
Log:
Make explicit the default boxing

Modified:
    commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
    commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/BeanProcessor.java

Modified: commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java?rev=1171964&r1=1171963&r2=1171964&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
(original)
+++ commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
Sat Sep 17 12:20:06 2011
@@ -440,7 +440,7 @@ public class AsyncQueryRunner extends Ab
                 }
             }
 
-            return rows;
+            return Integer.valueOf(rows);
         }
 
     }

Modified: commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/BeanProcessor.java
URL: http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/BeanProcessor.java?rev=1171964&r1=1171963&r2=1171964&view=diff
==============================================================================
--- commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/BeanProcessor.java (original)
+++ commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/BeanProcessor.java Sat
Sep 17 12:20:06 2011
@@ -440,29 +440,29 @@ public class BeanProcessor {
 
         } else if (
             propType.equals(Integer.TYPE) || propType.equals(Integer.class)) {
-            return (rs.getInt(index));
+            return Integer.valueOf(rs.getInt(index));
 
         } else if (
             propType.equals(Boolean.TYPE) || propType.equals(Boolean.class)) {
-            return (rs.getBoolean(index));
+            return Boolean.valueOf(rs.getBoolean(index));
 
         } else if (propType.equals(Long.TYPE) || propType.equals(Long.class)) {
-            return (rs.getLong(index));
+            return Long.valueOf(rs.getLong(index));
 
         } else if (
             propType.equals(Double.TYPE) || propType.equals(Double.class)) {
-            return (rs.getDouble(index));
+            return Double.valueOf(rs.getDouble(index));
 
         } else if (
             propType.equals(Float.TYPE) || propType.equals(Float.class)) {
-            return (rs.getFloat(index));
+            return Float.valueOf(rs.getFloat(index));
 
         } else if (
             propType.equals(Short.TYPE) || propType.equals(Short.class)) {
-            return (rs.getShort(index));
+            return Short.valueOf(rs.getShort(index));
 
         } else if (propType.equals(Byte.TYPE) || propType.equals(Byte.class)) {
-            return (rs.getByte(index));
+            return Byte.valueOf(rs.getByte(index));
 
         } else if (propType.equals(Timestamp.class)) {
             return rs.getTimestamp(index);



Mime
View raw message