jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1444678 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java
Date Mon, 11 Feb 2013 08:18:59 GMT
Author: thomasm
Date: Mon Feb 11 08:18:59 2013
New Revision: 1444678

URL: http://svn.apache.org/r1444678
Log:
OAK-593: Segment-based MK: don't use Java 7 methods

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java?rev=1444678&r1=1444677&r2=1444678&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/SegmentWriter.java
Mon Feb 11 08:18:59 2013
@@ -167,7 +167,8 @@ public class SegmentWriter {
 
         @Override
         public int compareTo(MapEntry that) {
-            int diff = Integer.compare(hashCode, that.hashCode);
+            // int diff = Integer.compare(hashCode, that.hashCode);
+            int diff = hashCode == that.hashCode ? 0 : hashCode < that.hashCode ? -1 :
1;
             if (diff == 0) {
                 diff = key.compareTo(that.key);
             }



Mime
View raw message