lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1575318 - /lucene/dev/branches/branch_4x/lucene/misc/src/java/org/apache/lucene/index/sorter/Sorter.java
Date Fri, 07 Mar 2014 16:47:07 GMT
Author: rmuir
Date: Fri Mar  7 16:47:07 2014
New Revision: 1575318

URL: http://svn.apache.org/r1575318
Log:
avoid Integer.compare

Modified:
    lucene/dev/branches/branch_4x/lucene/misc/src/java/org/apache/lucene/index/sorter/Sorter.java

Modified: lucene/dev/branches/branch_4x/lucene/misc/src/java/org/apache/lucene/index/sorter/Sorter.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/misc/src/java/org/apache/lucene/index/sorter/Sorter.java?rev=1575318&r1=1575317&r2=1575318&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/misc/src/java/org/apache/lucene/index/sorter/Sorter.java
(original)
+++ lucene/dev/branches/branch_4x/lucene/misc/src/java/org/apache/lucene/index/sorter/Sorter.java
Fri Mar  7 16:47:07 2014
@@ -235,7 +235,7 @@ final class Sorter {
               return comp;
             }
           }
-          return Integer.compare(docID1, docID2); // docid order tiebreak
+          return docID1 - docID2; // docid order tiebreak
         } catch (IOException e) {
           throw new RuntimeException(e);
         }



Mime
View raw message