Skip to content

Commit

Permalink
Fixes another serialization problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément Tourrière committed May 29, 2019
1 parent 8c04f81 commit 1a0c17a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ protected void innerWriteTo(StreamOutput out) throws IOException {
bucketCountThresholds.writeTo(out);
out.writeBoolean(must_simplify);
out.writeString(output_format.name());
out.writeOptionalVInt(simplify_zoom);
out.writeInt(simplify_zoom);
out.writeString(simplify_algorithm.name());
}

Expand Down Expand Up @@ -157,7 +157,7 @@ private GeoShapeBuilder simplify_keys(List<Object> simplify) {
}
return this;
}

@Override
protected boolean serializeTargetValueType() {
return true;
Expand Down Expand Up @@ -217,7 +217,7 @@ protected XContentBuilder doXContentBody(XContentBuilder builder, Params params)
*/
@Override
protected int innerHashCode() {
return Objects.hash(output_format, must_simplify, simplify_zoom, simplify_algorithm);
return Objects.hash(output_format, must_simplify, simplify_zoom, simplify_algorithm, bucketCountThresholds);
}

@Override
Expand Down

0 comments on commit 1a0c17a

Please sign in to comment.