Apache Lucene open-source search software
LUCENE-1786: make the patternsFileContent static, so we only load it once, not 4 times, when running this test
Michael McCandless35ea5c1350b5
diff --git a/contrib/analyzers/common/src/test/org/apache/lucene/analysis/compound/TestCompoundWordTokenFilter.java b/contrib/analyzers/common/src/test/org/apache/lucene/analysis/compound/TestCompoundWordTokenFilter.javaindex d51edb064c6..506dfa13a43 100644--- a/contrib/analyzers/common/src/test/org/apache/lucene/analysis/compound/TestCompoundWordTokenFilter.java+++ b/contrib/analyzers/common/src/test/org/apache/lucene/analysis/compound/TestCompoundWordTokenFilter.java@@ -49,7 +49,7 @@ public class TestCompoundWordTokenFilter extends TestCase {// too slow://"http://superb-east.dl.sourceforge.net/sourceforge/offo/offo-hyphenation.zip"};- private byte[] patternsFileContent;+ private static byte[] patternsFileContent;protected void setUp() throws Exception {super.setUp();