lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject cvs commit: jakarta-lucene/src/test/org/apache/lucene/search TestFilteredQuery.java TestPositionIncrement.java
Date Sun, 10 Oct 2004 15:44:46 GMT
dnaber      2004/10/10 08:44:46

  Modified:    src/test/org/apache/lucene/search TestFilteredQuery.java
                        TestPositionIncrement.java
  Log:
  cleanup: don't declare exceptions that can never be thrown
  
  Revision  Changes    Path
  1.7       +2 -4      jakarta-lucene/src/test/org/apache/lucene/search/TestFilteredQuery.java
  
  Index: TestFilteredQuery.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/search/TestFilteredQuery.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestFilteredQuery.java	6 Sep 2004 22:01:49 -0000	1.6
  +++ TestFilteredQuery.java	10 Oct 2004 15:44:45 -0000	1.7
  @@ -25,8 +25,6 @@
   import org.apache.lucene.index.Term;
   import org.apache.lucene.store.RAMDirectory;
   import java.util.BitSet;
  -import java.io.IOException;
  -
   
   /**
    * FilteredQuery JUnit tests.
  @@ -76,7 +74,7 @@
       searcher = new IndexSearcher (directory);
       query = new TermQuery (new Term ("field", "three"));
       filter = new Filter() {
  -      public BitSet bits (IndexReader reader) throws IOException {
  +      public BitSet bits (IndexReader reader) {
           BitSet bitset = new BitSet(5);
           bitset.set (1);
           bitset.set (3);
  
  
  
  1.6       +2 -3      jakarta-lucene/src/test/org/apache/lucene/search/TestPositionIncrement.java
  
  Index: TestPositionIncrement.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/search/TestPositionIncrement.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- TestPositionIncrement.java	7 Sep 2004 18:26:36 -0000	1.5
  +++ TestPositionIncrement.java	10 Oct 2004 15:44:45 -0000	1.6
  @@ -30,7 +30,6 @@
   import org.apache.lucene.document.Field;
   
   import java.io.Reader;
  -import java.io.IOException;
   import java.io.StringReader;
   
   import junit.framework.TestCase;
  @@ -51,7 +50,7 @@
             private final int[] INCREMENTS = {1, 2, 1, 0, 1};
             private int i = 0;
   
  -          public Token next() throws IOException {
  +          public Token next() {
               if (i == TOKENS.length)
                 return null;
               Token t = new Token(TOKENS[i], i, i);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message