You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2019/01/15 10:38:21 UTC

[lucene-solr] 02/09: Remove deprecated method from SimpleTerm

This is an automated email from the ASF dual-hosted git repository.

romseygeek pushed a commit to branch master-deprecations
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 5e7f6b7e94c306369e5e00124b7a9f66e274df56
Author: Alan Woodward <ro...@apache.org>
AuthorDate: Mon Jan 14 14:15:41 2019 +0000

    Remove deprecated method from SimpleTerm
---
 .../apache/lucene/queryparser/surround/query/SimpleTerm.java | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/SimpleTerm.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/SimpleTerm.java
index f574feb..1020935 100644
--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/SimpleTerm.java
+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/SimpleTerm.java
@@ -26,7 +26,7 @@ import org.apache.lucene.search.Query;
  */
 public abstract class SimpleTerm
   extends SrndQuery
-  implements DistanceSubQuery, Comparable<SimpleTerm>
+  implements DistanceSubQuery
 {
   public SimpleTerm(boolean q) {quoted = q;}
   
@@ -37,16 +37,6 @@ public abstract class SimpleTerm
   public String getFieldOperator() {return "/";}
   
   public abstract String toStringUnquoted();
-
-  /** @deprecated (March 2011) Not normally used, to be removed from Lucene 4.0.
-   *   This class implementing Comparable is to be removed at the same time.
-   */
-  @Override
-  @Deprecated
-  public int compareTo(SimpleTerm ost) {
-    /* for ordering terms and prefixes before using an index, not used */
-    return this.toStringUnquoted().compareTo( ost.toStringUnquoted());
-  }
   
   protected void suffixToString(StringBuilder r) {} /* override for prefix query */