You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by dn...@apache.org on 2004/08/07 13:10:02 UTC

cvs commit: jakarta-lucene/src/java/org/apache/lucene/index CompoundFileReader.java IndexReader.java

dnaber      2004/08/07 04:10:02

  Modified:    src/java/org/apache/lucene/index CompoundFileReader.java
                        IndexReader.java
  Log:
  remove useless "throws IOException" declarations; fix one @param name
  
  Revision  Changes    Path
  1.8       +4 -5      jakarta-lucene/src/java/org/apache/lucene/index/CompoundFileReader.java
  
  Index: CompoundFileReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/CompoundFileReader.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- CompoundFileReader.java	12 Jul 2004 14:36:04 -0000	1.7
  +++ CompoundFileReader.java	7 Aug 2004 11:10:02 -0000	1.8
  @@ -196,7 +196,6 @@
           long fileOffset;
   
           CSInputStream(final InputStream base, final long fileOffset, final long length)
  -          throws IOException
           {
               this.base = base;
               this.fileOffset = fileOffset;
  @@ -207,7 +206,7 @@
            *  position in the input.
            * @param b the array to read bytes into
            * @param offset the offset in the array to start storing bytes
  -         * @param length the number of bytes to read
  +         * @param len the number of bytes to read
            */
           protected void readInternal(byte[] b, int offset, int len)
           throws IOException
  @@ -225,10 +224,10 @@
            *  the next {@link #readInternal(byte[],int,int)} will occur.
            * @see #readInternal(byte[],int,int)
            */
  -        protected void seekInternal(long pos) throws IOException {}
  +        protected void seekInternal(long pos) {}
   
           /** Closes the stream to futher operations. */
  -        public void close() throws IOException {}
  +        public void close() {}
   
       }
   }
  
  
  
  1.34      +2 -2      jakarta-lucene/src/java/org/apache/lucene/index/IndexReader.java
  
  Index: IndexReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/IndexReader.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- IndexReader.java	4 Aug 2004 19:40:26 -0000	1.33
  +++ IndexReader.java	7 Aug 2004 11:10:02 -0000	1.34
  @@ -521,7 +521,7 @@
     protected abstract void doClose() throws IOException;
   
     /** Release the write lock, if needed. */
  -  protected final void finalize() throws IOException {
  +  protected final void finalize() {
       if (writeLock != null) {
         writeLock.release();                        // release write lock
         writeLock = null;
  
  
  

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