You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by dn...@apache.org on 2004/10/07 20:10:52 UTC

cvs commit: jakarta-lucene/src/java/org/apache/lucene/index SegmentTermPositions.java

dnaber      2004/10/07 11:10:52

  Modified:    src/java/org/apache/lucene/index SegmentTermPositions.java
  Log:
  don't declare an Exception that can never be thrown
  
  Revision  Changes    Path
  1.10      +2 -3      jakarta-lucene/src/java/org/apache/lucene/index/SegmentTermPositions.java
  
  Index: SegmentTermPositions.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/SegmentTermPositions.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SegmentTermPositions.java	16 Sep 2004 21:13:37 -0000	1.9
  +++ SegmentTermPositions.java	7 Oct 2004 18:10:52 -0000	1.10
  @@ -26,7 +26,7 @@
     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 @@
       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.");
     }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org