You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/02/11 12:03:59 UTC
svn commit: r1069746 -
/lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/util/pfor/PForCompress.java
Author: mikemccand
Date: Fri Feb 11 11:03:59 2011
New Revision: 1069746
URL: http://svn.apache.org/viewvc?rev=1069746&view=rev
Log:
no java6
Modified:
lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/util/pfor/PForCompress.java
Modified: lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/util/pfor/PForCompress.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/util/pfor/PForCompress.java?rev=1069746&r1=1069745&r2=1069746&view=diff
==============================================================================
--- lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/util/pfor/PForCompress.java (original)
+++ lucene/dev/branches/bulkpostings/lucene/src/java/org/apache/lucene/util/pfor/PForCompress.java Fri Feb 11 11:03:59 2011
@@ -276,8 +276,10 @@ public class PForCompress extends ForCom
+ " + unComprSize " + unComprSize
+ ") > unCompressedData.length " + unCompressedData.length);
}
- int copy[] = Arrays.copyOfRange(unCompressedData, offset, offset + unComprSize);
- assert copy.length == unComprSize;
+ int copy[] = new int[unComprSize];
+ System.arraycopy(unCompressedData, offset, copy, 0, unComprSize);
+ //int copy[] = Arrays.copyOfRange(unCompressedData, offset, offset + unComprSize);
+ //assert copy.length == unComprSize;
Arrays.sort(copy);
int maxValue = copy[copy.length-1];
if (maxValue <= 1) {