Fix compilation.

This commit is contained in:
Adrien Grand 2017-07-19 14:46:30 +02:00
parent 55ad318541
commit 7a0eeb3978
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ public class RandomScoreFunctionBuilder extends ScoreFunctionBuilder<RandomScore
if (in.readBoolean()) { if (in.readBoolean()) {
seed = in.readInt(); seed = in.readInt();
} }
if (in.getVersion().onOrAfter(Version.V_6_0_0_alpha3)) { if (in.getVersion().onOrAfter(Version.V_6_0_0_beta1)) {
field = in.readOptionalString(); field = in.readOptionalString();
} }
} }
@ -71,7 +71,7 @@ public class RandomScoreFunctionBuilder extends ScoreFunctionBuilder<RandomScore
} else { } else {
out.writeBoolean(false); out.writeBoolean(false);
} }
if (out.getVersion().onOrAfter(Version.V_6_0_0_alpha3)) { if (out.getVersion().onOrAfter(Version.V_6_0_0_beta1)) {
out.writeOptionalString(field); out.writeOptionalString(field);
} }
} }