mirror of
https://github.com/apache/lucene.git
synced 2025-03-06 00:09:28 +00:00
remove useless "throws IOException" declarations; fix one @param name
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150403 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
004407a688
commit
18a4dc5dce
@ -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() {}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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 lock
|
||||
writeLock = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user