mirror of https://github.com/apache/lucene.git
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:
parent
5738ff629e
commit
135f24a875
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue