db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1337014 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java
Date Fri, 11 May 2012 03:03:46 GMT
Author: tfischer
Date: Fri May 11 03:03:45 2012
New Revision: 1337014

URL: http://svn.apache.org/viewvc?rev=1337014&view=rev
Log:
use Integer.valueOf() instead of new Integer() 
(makes Findbugs happy)

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java?rev=1337014&r1=1337013&r2=1337014&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/BasePeerImpl.java
Fri May 11 03:03:45 2012
@@ -2132,8 +2132,8 @@ public class BasePeerImpl implements Ser
                 {
                     replaceBooleanValues(
                             criterion,
-                            new Integer(1),
-                            new Integer(0));
+                            Integer.valueOf(1),
+                            Integer.valueOf(0));
                 }
                 else if ("BOOLEANCHAR".equals(columnMap.getTorqueType()))
                 {
@@ -2210,8 +2210,8 @@ public class BasePeerImpl implements Ser
             {
                 replaceBooleanValues(
                         criterion,
-                        new Integer(1),
-                        new Integer(0));
+                        Integer.valueOf(1),
+                        Integer.valueOf(0));
             }
             else if ("BOOLEANCHAR".equals(columnMap.getTorqueType()))
             {
@@ -2322,8 +2322,8 @@ public class BasePeerImpl implements Ser
                 {
                     columnValue.setValue(
                             Boolean.TRUE.equals(columnValue.getValue())
-                                    ? new Integer(1)
-                                    : new Integer(0));
+                                    ? Integer.valueOf(1)
+                                    : Integer.valueOf(0));
                 }
                 else if ("BOOLEANCHAR".equals(column.getTorqueType()))
                 {



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message