lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jan...@apache.org
Subject svn commit: r1342572 - /lucene/dev/branches/lucene_solr_3_6/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/fst/TestSort.java
Date Fri, 25 May 2012 11:02:20 GMT
Author: janhoy
Date: Fri May 25 11:02:19 2012
New Revision: 1342572

URL: http://svn.apache.org/viewvc?rev=1342572&view=rev
Log:
LUCENE-4074: Fixed non-compiling TestSort.testRamBuffer

Modified:
    lucene/dev/branches/lucene_solr_3_6/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/fst/TestSort.java

Modified: lucene/dev/branches/lucene_solr_3_6/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/fst/TestSort.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_3_6/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/fst/TestSort.java?rev=1342572&r1=1342571&r2=1342572&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_3_6/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/fst/TestSort.java
(original)
+++ lucene/dev/branches/lucene_solr_3_6/lucene/contrib/spellchecker/src/test/org/apache/lucene/search/suggest/fst/TestSort.java
Fri May 25 11:02:19 2012
@@ -21,7 +21,6 @@ import java.io.*;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Comparator;
-
 import org.apache.lucene.search.suggest.fst.Sort.BufferSize;
 import org.apache.lucene.search.suggest.fst.Sort.ByteSequencesWriter;
 import org.apache.lucene.search.suggest.fst.Sort.SortInfo;
@@ -156,7 +155,7 @@ public class TestSort extends LuceneTest
   public void testRamBuffer() {
     int numIters = atLeast(10000);
     for (int i = 0; i < numIters; i++) {
-      BufferSize.megabytes(1+random().nextInt(2047));
+      BufferSize.megabytes(1+random.nextInt(2047));
     }
     BufferSize.megabytes(2047);
     BufferSize.megabytes(1);



Mime
View raw message