Apache Solr open-source search software
remove useless "throws IOException" declarations; fix one @param name
Daniel Naber18a4dc5dce56
diff --git a/src/java/org/apache/lucene/index/CompoundFileReader.java b/src/java/org/apache/lucene/index/CompoundFileReader.javaindex ebf02dc1d6a..8692cd6c4e5 100644--- a/src/java/org/apache/lucene/index/CompoundFileReader.java+++ b/src/java/org/apache/lucene/index/CompoundFileReader.java@@ -196,7 +196,6 @@ class CompoundFileReader extends Directory {long fileOffset;CSInputStream(final InputStream base, final long fileOffset, final long length)- throws IOException{this.base = base;this.fileOffset = fileOffset;@@ -207,7 +206,7 @@ class CompoundFileReader extends Directory {* 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 @@ class CompoundFileReader extends Directory {* 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() {}}}diff --git a/src/java/org/apache/lucene/index/IndexReader.java b/src/java/org/apache/lucene/index/IndexReader.javaindex 233af5060b3..cabd6ccee11 100644--- a/src/java/org/apache/lucene/index/IndexReader.java+++ b/src/java/org/apache/lucene/index/IndexReader.java@@ -521,7 +521,7 @@ public abstract class IndexReader {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 lockwriteLock = null;