Fixed bug where Hits.id() returned a Float instead of an int

Bug found by Terry Steichen


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149892 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Peter Carlson 2002-11-15 16:07:12 +00:00
parent c769f13a2c
commit 0066cc0f7f
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public final class Hits {
}
/** 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;
}