cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r409479 - /incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/ObjectId.java
Date Thu, 25 May 2006 21:39:46 GMT
Author: aadamchik
Date: Thu May 25 14:39:45 2006
New Revision: 409479

URL: http://svn.apache.org/viewvc?rev=409479&view=rev
Log:
speeding up hashCode() a bit

Modified:
    incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/ObjectId.java

Modified: incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/ObjectId.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/ObjectId.java?rev=409479&r1=409478&r2=409479&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/ObjectId.java
(original)
+++ incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/ObjectId.java
Thu May 25 14:39:45 2006
@@ -366,7 +366,7 @@
                 builder.append(key);
             }
             else if(singleKey != null) {
-                builder.append(singleKey);
+                builder.append(singleKey.hashCode());
 
                 // must reconcile all possible numeric types
                 if (singleValue instanceof Number) {



Mime
View raw message