Skip to content

Commit

Permalink
make condition avaiable be default
Browse files Browse the repository at this point in the history
  • Loading branch information
dnhatn committed Nov 4, 2017
1 parent 6fa4abf commit c33d4b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ protected Condition(String name) {
* Checks if this condition is available in a specific version.
* This makes sure BWC when introducing a new condition which is not recognized by older versions.
*/
abstract boolean includedInVersion(Version version);
boolean includedInVersion(Version version) {
return true;
}

@Override
public final String toString() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package org.elasticsearch.action.admin.indices.rollover;

import org.elasticsearch.Version;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.common.unit.TimeValue;
Expand Down Expand Up @@ -49,11 +48,6 @@ public Result evaluate(final Stats stats) {
return new Result(this, this.value.getMillis() <= indexAge);
}

@Override
boolean includedInVersion(Version version) {
return true;
}

@Override
public String getWriteableName() {
return NAME;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package org.elasticsearch.action.admin.indices.rollover;

import org.elasticsearch.Version;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;

Expand Down Expand Up @@ -47,11 +46,6 @@ public Result evaluate(final Stats stats) {
return new Result(this, this.value <= stats.numDocs);
}

@Override
boolean includedInVersion(Version version) {
return true;
}

@Override
public String getWriteableName() {
return NAME;
Expand Down

0 comments on commit c33d4b3

Please sign in to comment.