Skip to content

Commit

Permalink
Replacing hackish with stylish...
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x@1354363 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dweiss committed Jun 27, 2012
1 parent f54540d commit 00968a6
Showing 1 changed file with 9 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,9 @@
import java.io.StringReader;
import java.io.StringWriter;
import java.io.Writer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import java.util.*;

import org.apache.lucene.analysis.tokenattributes.*;
import org.apache.lucene.codecs.PostingsFormat;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
import org.apache.lucene.document.FieldType;
Expand Down Expand Up @@ -480,14 +473,14 @@ public static void checkRandomData(Random random, Analyzer a, int iterations, in
}
}

static final Set<String> doesntSupportOffsets = new HashSet<String>() {{
add("Lucene3x");
add("MockFixedIntBlock");
add("MockVariableIntBlock");
add("MockSep");
add("MockRandom");
}};
static final Set<String> doesntSupportOffsets = new HashSet<String>(Arrays.asList(
"Lucene3x",
"MockFixedIntBlock",
"MockVariableIntBlock",
"MockSep",
"MockRandom"
));

private static void checkRandomData(Random random, Analyzer a, int iterations, int maxWordLength, boolean useCharFilter, boolean simple, boolean offsetsAreCorrect, RandomIndexWriter iw) throws IOException {

final LineFileDocs docs = new LineFileDocs(random);
Expand Down

0 comments on commit 00968a6

Please sign in to comment.