jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1528591 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/MapLeaf.java
Date Wed, 02 Oct 2013 18:52:40 GMT
Author: jukka
Date: Wed Oct  2 18:52:40 2013
New Revision: 1528591

URL: http://svn.apache.org/r1528591
Log:
OAK-1031: SegmentMK: Fewer segment lookups

Avoid Java 7 methods

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/MapLeaf.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/MapLeaf.java?rev=1528591&r1=1528590&r2=1528591&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/MapLeaf.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/MapLeaf.java
Wed Oct  2 18:52:40 2013
@@ -46,7 +46,8 @@ class MapLeaf extends MapRecord {
 
         int d = -1;
         for (int i = 0; i < size && d < 0; i++) {
-            d = Integer.compare(segment.readInt(getOffset(4 + i * 4)), hash);
+            d = Integer.valueOf(segment.readInt(getOffset(4 + i * 4)))
+                    .compareTo(Integer.valueOf(hash));
             if (d == 0) {
                 RecordId keyId = segment.readRecordId(
                         getOffset(4 + size * 4, i));



Mime
View raw message