LUCENE-7590: fix typo in method parameter

This commit is contained in:
Shai Erera 2016-12-14 13:28:02 +02:00
parent 770f1eb8ad
commit 85582dabe4
1 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ public abstract class DocValuesStats<T> {
* Initializes this object with the given reader context. Returns whether stats can be computed for this segment (i.e.
* it does have the requested DocValues field).
*/
protected abstract boolean init(LeafReaderContext contxt) throws IOException;
protected abstract boolean init(LeafReaderContext context) throws IOException;
/** Returns whether the given document has a value for the requested DocValues field. */
protected abstract boolean hasValue(int doc) throws IOException;
@ -106,8 +106,8 @@ public abstract class DocValuesStats<T> {
}
@Override
protected final boolean init(LeafReaderContext contxt) throws IOException {
ndv = contxt.reader().getNumericDocValues(field);
protected final boolean init(LeafReaderContext context) throws IOException {
ndv = context.reader().getNumericDocValues(field);
return ndv != null;
}