fix compile error

ExtendedBounds cannot yet have its ParseFieldMatcher usage removed, reverted that bit.
This commit is contained in:
javanna 2017-01-12 10:21:47 +01:00 committed by Luca Cavanna
parent 7674de9e1f
commit 83a3f0e42c
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@
package org.elasticsearch.search.aggregations.bucket.histogram; package org.elasticsearch.search.aggregations.bucket.histogram;
import org.elasticsearch.common.ParseField; import org.elasticsearch.common.ParseField;
import org.elasticsearch.common.ParseFieldMatcherSupplier;
import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.io.stream.Writeable; import org.elasticsearch.common.io.stream.Writeable;
@ -44,7 +45,7 @@ public class ExtendedBounds implements ToXContent, Writeable {
static final ParseField MIN_FIELD = new ParseField("min"); static final ParseField MIN_FIELD = new ParseField("min");
static final ParseField MAX_FIELD = new ParseField("max"); static final ParseField MAX_FIELD = new ParseField("max");
public static final ConstructingObjectParser<ExtendedBounds, Void> PARSER = new ConstructingObjectParser<>( public static final ConstructingObjectParser<ExtendedBounds, ParseFieldMatcherSupplier> PARSER = new ConstructingObjectParser<>(
"extended_bounds", a -> { "extended_bounds", a -> {
assert a.length == 2; assert a.length == 2;
Long min = null; Long min = null;