lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From busc...@apache.org
Subject svn commit: r824602 - in /lucene/java/branches/lucene_2_9_back_compat_tests/src: java/org/apache/lucene/search/spans/SpanQuery.java test/org/apache/lucene/search/spans/TestFieldMaskingSpanQuery.java
Date Tue, 13 Oct 2009 06:17:31 GMT
Author: buschmi
Date: Tue Oct 13 06:17:30 2009
New Revision: 824602

URL: http://svn.apache.org/viewvc?rev=824602&view=rev
Log:
Fix currently broken back-compat tests - sorry for being clumsy these days...

Modified:
    lucene/java/branches/lucene_2_9_back_compat_tests/src/java/org/apache/lucene/search/spans/SpanQuery.java
    lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/search/spans/TestFieldMaskingSpanQuery.java

Modified: lucene/java/branches/lucene_2_9_back_compat_tests/src/java/org/apache/lucene/search/spans/SpanQuery.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9_back_compat_tests/src/java/org/apache/lucene/search/spans/SpanQuery.java?rev=824602&r1=824601&r2=824602&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9_back_compat_tests/src/java/org/apache/lucene/search/spans/SpanQuery.java
(original)
+++ lucene/java/branches/lucene_2_9_back_compat_tests/src/java/org/apache/lucene/search/spans/SpanQuery.java
Tue Oct 13 06:17:30 2009
@@ -34,12 +34,6 @@
   /** Returns the name of the field matched by this query.*/
   public abstract String getField();
 
-  /** Returns a collection of all terms matched by this query.
-   * @deprecated use extractTerms instead
-   * @see Query#extractTerms(Set)
-   */
-  public abstract Collection getTerms();
-  
   public Weight createWeight(Searcher searcher) throws IOException {
     return new SpanWeight(this, searcher);
   }

Modified: lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/search/spans/TestFieldMaskingSpanQuery.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/search/spans/TestFieldMaskingSpanQuery.java?rev=824602&r1=824601&r2=824602&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/search/spans/TestFieldMaskingSpanQuery.java
(original)
+++ lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/search/spans/TestFieldMaskingSpanQuery.java
Tue Oct 13 06:17:30 2009
@@ -131,7 +131,7 @@
 
     QueryUtils.checkEqual(q, qr);
 
-    Set<Term> terms = new HashSet<Term>();
+    Set terms = new HashSet();
     qr.extractTerms(terms);
     assertEquals(1, terms.size());
   }
@@ -151,7 +151,7 @@
 
     QueryUtils.checkUnequal(q, qr);
 
-    Set<Term> terms = new HashSet<Term>();
+    Set terms = new HashSet();
     qr.extractTerms(terms);
     assertEquals(2, terms.size());
   }



Mime
View raw message