Skip to content

Commit

Permalink
use 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nik9000 committed Jan 3, 2020
1 parent b8f692e commit 95da5cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ static class OffsetRounding extends Rounding {

@Override
public void innerWriteTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
throw new IllegalArgumentException("Offset rounding not supported before 8.0.0");
}
delegate.writeTo(out);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected DateHistogramValuesSourceBuilder(StreamInput in) throws IOException {
super(in);
dateHistogramInterval = new DateIntervalWrapper(in);
timeZone = in.readOptionalZoneId();
if (in.getVersion().onOrAfter(Version.V_7_6_0)) {
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
offset = in.readLong();
}
}
Expand All @@ -100,7 +100,7 @@ protected DateHistogramValuesSourceBuilder(StreamInput in) throws IOException {
protected void innerWriteTo(StreamOutput out) throws IOException {
dateHistogramInterval.writeTo(out);
out.writeOptionalZoneId(timeZone);
if (out.getVersion().onOrAfter(Version.V_7_6_0)) {
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
out.writeLong(offset);
}
}
Expand Down

0 comments on commit 95da5cb

Please sign in to comment.