don't declare an Exception that can never be thrown

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150579 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2004-10-07 18:10:52 +00:00
parent 5738ff629e
commit 135f24a875
1 changed files with 2 additions and 3 deletions

View File

@ -26,7 +26,7 @@ extends SegmentTermDocs implements TermPositions {
private int proxCount;
private int position;
SegmentTermPositions(SegmentReader p) throws IOException {
SegmentTermPositions(SegmentReader p) {
super(p);
this.proxStream = (IndexInput)parent.proxStream.clone();
}
@ -65,8 +65,7 @@ extends SegmentTermDocs implements TermPositions {
return false;
}
public final int read(final int[] docs, final int[] freqs)
throws IOException {
public final int read(final int[] docs, final int[] freqs) {
throw new UnsupportedOperationException("TermPositions does not support processing multiple documents in one call. Use TermDocs instead.");
}