You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2017/12/27 15:04:23 UTC

[30/54] [abbrv] lucene-solr:jira/solr-11702: LUCENE-2899: tests: remove unused constants

LUCENE-2899: tests: remove unused constants


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/82759523
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/82759523
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/82759523

Branch: refs/heads/jira/solr-11702
Commit: 827595233751d97d8a2408e69be5dbaf004c7d55
Parents: f8c93db
Author: Steve Rowe <sa...@apache.org>
Authored: Mon Dec 18 19:01:46 2017 -0500
Committer: Steve Rowe <sa...@apache.org>
Committed: Mon Dec 18 19:03:29 2017 -0500

----------------------------------------------------------------------
 .../lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java      | 3 ---
 .../lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java      | 1 -
 2 files changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/82759523/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
index 10372d0..814f480 100644
--- a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
+++ b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
@@ -41,9 +41,6 @@ public class TestOpenNLPPOSFilterFactory extends BaseTokenStreamTestCase {
   private static final int[] SENTENCES_endOffsets = {8, 15, 17, 21, 23, 29, 30, 39, 46, 48, 49, 51, 57, 58};
   private static final String[] SENTENCES_posTags
       = {"NN", "NN", "CD", "VBZ", "CD", "NNS", ".", "NN", "NN", "CD", ",", "CD", "NNS", "."};
-  private static final String NAMES2 = "Royal Flash is a tale about Harry Flashman.";
-  private static final String[] NAMES2_punc = {"Royal", "Flash", "is", "a", "tale", "about", "Harry", "Flashman", "."};
-  private static final String[] NAMES2_OUT = { "word", "word", "word", "word", "word", "word", "word", "person", "word" };
 
   private static final String NO_BREAK = "No period";
   private static final String[] NO_BREAK_terms = {"No", "period"};

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/82759523/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
index db2bbb2..59a5220 100644
--- a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
+++ b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
@@ -36,7 +36,6 @@ import org.junit.Test;
 public class TestOpenNLPTokenizerFactory extends BaseTokenStreamTestCase {
 
   static private String SENTENCES = "Sentence number 1 has 6 words. Sentence number 2, 5 words.";
-  static private String[] SENTENCES_split = {"Sentence number 1 has 6 words. ", "Sentence number 2, 5 words."};
   static private String[] SENTENCES_punc = {"Sentence", "number", "1", "has", "6", "words", ".", "Sentence", "number", "2", ",", "5", "words", "."};
   static private int[] SENTENCES_startOffsets = {0, 9, 16, 18, 22, 24, 29, 31, 40, 47, 48, 50, 52, 57};
   static private int[] SENTENCES_endOffsets = {8, 15, 17, 21, 23, 29, 30, 39, 46, 48, 49, 51, 57, 58};