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/index MockIndexInput.java TestFilterIndexReader.java
Date Sun, 10 Oct 2004 15:43:39 GMT
dnaber      2004/10/10 08:43:39

  Modified:    src/test/org/apache/lucene/index MockIndexInput.java
                        TestFilterIndexReader.java
  Log:
  cleanup: don't declare exceptions that can never be thrown
  
  Revision  Changes    Path
  1.2       +3 -6      jakarta-lucene/src/test/org/apache/lucene/index/MockIndexInput.java
  
  Index: MockIndexInput.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/index/MockIndexInput.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MockIndexInput.java	16 Sep 2004 21:13:37 -0000	1.1
  +++ MockIndexInput.java	10 Oct 2004 15:43:39 -0000	1.2
  @@ -18,8 +18,6 @@
   
   import org.apache.lucene.store.BufferedIndexInput;
   
  -import java.io.IOException;
  -
   public class MockIndexInput extends BufferedIndexInput {
       private byte[] buffer;
       private int pointer = 0;
  @@ -30,8 +28,7 @@
           length = bytes.length;
       }
   
  -    protected void readInternal(byte[] dest, int destOffset, int len)
  -            throws IOException {
  +    protected void readInternal(byte[] dest, int destOffset, int len) {
           int remainder = len;
           int start = pointer;
           while (remainder != 0) {
  @@ -47,11 +44,11 @@
           pointer += len;
       }
   
  -    public void close() throws IOException {
  +    public void close() {
           // ignore
       }
   
  -    protected void seekInternal(long pos) throws IOException {
  +    protected void seekInternal(long pos) {
           pointer = (int) pos;
       }
   
  
  
  
  1.8       +2 -4      jakarta-lucene/src/test/org/apache/lucene/index/TestFilterIndexReader.java
  
  Index: TestFilterIndexReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/index/TestFilterIndexReader.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestFilterIndexReader.java	25 Aug 2004 12:01:39 -0000	1.7
  +++ TestFilterIndexReader.java	10 Oct 2004 15:43:39 -0000	1.8
  @@ -34,8 +34,7 @@
   
        /** Filter that only permits terms containing 'e'.*/
       private static class TestTermEnum extends FilterTermEnum {
  -      public TestTermEnum(TermEnum termEnum)
  -        throws IOException {
  +      public TestTermEnum(TermEnum termEnum) {
           super(termEnum);
         }
   
  @@ -51,8 +50,7 @@
       
       /** Filter that only returns odd numbered documents. */
       private static class TestTermPositions extends FilterTermPositions {
  -      public TestTermPositions(TermPositions in)
  -        throws IOException {
  +      public TestTermPositions(TermPositions in) {
           super(in);
         }
   
  
  
  

---------------------------------------------------------------------
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