Skip to content

Commit 53ab470

Browse files
committed
use before instead of onOrBefore
1 parent 1924f5d commit 53ab470

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/lang-painless/src/main/java/org/elasticsearch/painless/PainlessExecuteAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public ActionRequestValidationException validate() {
322322
public void readFrom(StreamInput in) throws IOException {
323323
super.readFrom(in);
324324
script = new Script(in);
325-
if (in.getVersion().onOrBefore(Version.V_6_4_0)) {
325+
if (in.getVersion().before(Version.V_6_4_0)) {
326326
byte scriptContextId = in.readByte();
327327
assert scriptContextId == 0;
328328
} else {
@@ -335,7 +335,7 @@ public void readFrom(StreamInput in) throws IOException {
335335
public void writeTo(StreamOutput out) throws IOException {
336336
super.writeTo(out);
337337
script.writeTo(out);
338-
if (out.getVersion().onOrBefore(Version.V_6_4_0)) {
338+
if (out.getVersion().before(Version.V_6_4_0)) {
339339
out.writeByte((byte) 0);
340340
} else {
341341
out.writeString(context.name);

0 commit comments

Comments
 (0)