lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carl...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/search Hits.java
Date Fri, 15 Nov 2002 16:07:12 GMT
carlson     2002/11/15 08:07:12

  Modified:    src/java/org/apache/lucene/search Hits.java
  Log:
  Fixed bug where Hits.id() returned a Float instead of an int
Bug found by Terry Steichen
  
  Revision  Changes    Path
  1.3       +1 -1      jakarta-lucene/src/java/org/apache/lucene/search/Hits.java
  
  Index: Hits.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/Hits.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Hits.java	20 Jun 2002 14:32:08 -0000	1.2
  +++ Hits.java	15 Nov 2002 16:07:12 -0000	1.3
  @@ -134,7 +134,7 @@
     }
     
    /** Returns the id for the nth document in this set. */ 
  -  public final float id(int n) throws IOException {
  +  public final int id(int n) throws IOException {
       return hitDoc(n).id;
     }
   
  
  
  

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


Mime
View raw message