db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1348312 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/Criteria.java
Date Sat, 09 Jun 2012 03:40:42 GMT
Author: tfischer
Date: Sat Jun  9 03:40:41 2012
New Revision: 1348312

URL: http://svn.apache.org/viewvc?rev=1348312&view=rev
Log:
make findbugs happy: use valueOf for long instead constructor

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

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/Criteria.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/Criteria.java?rev=1348312&r1=1348311&r2=1348312&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/Criteria.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/Criteria.java
Sat Jun  9 03:40:41 2012
@@ -1975,7 +1975,7 @@ public class Criteria implements Seriali
     public int hashCode()
     {
         int result = 16;
-        result = 37 * result + new Long(offset).hashCode();
+        result = 37 * result + Long.valueOf(offset).hashCode();
         result = 37 * result + limit;
         result = 37 * result + (ignoreCase ? 0 : 1);
         result = 37 * result + (singleRecord ? 0 : 1);



---------------------------------------------------------------------
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