Fix compilation.
This commit is contained in:
parent
55ad318541
commit
7a0eeb3978
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue