lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject [2/4] lucene-solr:master: LUCENE-2899: tests: remove unused constants
Date Tue, 19 Dec 2017 00:04:34 GMT
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/master
Commit: 827595233751d97d8a2408e69be5dbaf004c7d55
Parents: f8c93db
Author: Steve Rowe <sarowe@apache.org>
Authored: Mon Dec 18 19:01:46 2017 -0500
Committer: Steve Rowe <sarowe@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};


Mime
View raw message