lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r1575446 - /lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java
Date Fri, 07 Mar 2014 23:04:36 GMT
Author: hossman
Date: Fri Mar  7 23:04:36 2014
New Revision: 1575446

URL: http://svn.apache.org/r1575446
Log:
SOLR-5818: Fix java1.6 source compatibility

Modified:
    lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java

Modified: lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java?rev=1575446&r1=1575445&r2=1575446&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java
(original)
+++ lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java
Fri Mar  7 23:04:36 2014
@@ -525,7 +525,7 @@ public class QueryComponent extends Sear
 
         @Override
         protected int compare(int i, int j) {
-          return Long.compare(sortedIds[i], sortedIds[j]);
+          return (int) (sortedIds[i] - sortedIds[j]);
         }
       }.sort(0, sortedIds.length);
 



Mime
View raw message