PackedInts.ReaderIterator should not be closeable.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1412538 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2012-11-22 13:06:56 +00:00
parent 84b624f028
commit dfc7786381
2 changed files with 1 additions and 10 deletions

View File

@ -134,7 +134,6 @@ class VarStraightBytesImpl {
docToAddress[lastDocID] = address + offset;
}
address += numDataBytes; // this is the address after all addr pointers are updated
iter.close();
} finally {
IOUtils.close(cloneIdx);
}

View File

@ -17,7 +17,6 @@ package org.apache.lucene.util.packed;
* limitations under the License.
*/
import java.io.Closeable;
import java.io.IOException;
import org.apache.lucene.codecs.CodecUtil;
@ -475,7 +474,7 @@ public class PackedInts {
/**
* Run-once iterator interface, to decode previously saved PackedInts.
*/
public static interface ReaderIterator extends Closeable {
public static interface ReaderIterator {
/** Returns next value */
long next() throws IOException;
/** Returns at least 1 and at most <code>count</code> next values,
@ -520,13 +519,6 @@ public class PackedInts {
public int size() {
return valueCount;
}
@Override
public void close() throws IOException {
if (in instanceof Closeable) {
((Closeable) in).close();
}
}
}
/**