diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/config/AnalysisConfig.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/config/AnalysisConfig.java index e3b86704d0e73..9087e8227f081 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/config/AnalysisConfig.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/job/config/AnalysisConfig.java @@ -138,7 +138,7 @@ public AnalysisConfig(StreamInput in) throws IOException { // BWC for result_finalization_window and overlapping_buckets // TODO Remove in 7.0.0 - if (in.getVersion().before(Version.CURRENT)) {//setting to current before backport + if (in.getVersion().before(Version.V_6_6_0)) { in.readOptionalBoolean(); in.readOptionalLong(); } @@ -182,7 +182,7 @@ public void writeTo(StreamOutput out) throws IOException { // BWC for result_finalization_window and overlapping_buckets // TODO Remove in 7.0.0 - if (out.getVersion().before(Version.CURRENT)) { //setting to current before backport + if (out.getVersion().before(Version.V_6_6_0)) { out.writeOptionalBoolean(null); out.writeOptionalLong(null); }