AnalyzeAction.Response doesn't need to call super.readFrom() (#44331)
The responses super.writeTo() method was removed in #44092, so the corresponding contructor that reads from a stream shouldn't call super itself, even though its implementation is currently empty.
This commit is contained in:
parent
7f5d40d235
commit
22dc125dad
|
@ -301,7 +301,6 @@ public class AnalyzeAction extends ActionType<AnalyzeAction.Response> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Response(StreamInput in) throws IOException {
|
public Response(StreamInput in) throws IOException {
|
||||||
super.readFrom(in);
|
|
||||||
if (in.getVersion().onOrAfter(Version.V_7_3_0)) {
|
if (in.getVersion().onOrAfter(Version.V_7_3_0)) {
|
||||||
AnalyzeToken[] tokenArray = in.readOptionalArray(AnalyzeToken::new, AnalyzeToken[]::new);
|
AnalyzeToken[] tokenArray = in.readOptionalArray(AnalyzeToken::new, AnalyzeToken[]::new);
|
||||||
tokens = tokenArray != null ? Arrays.asList(tokenArray) : null;
|
tokens = tokenArray != null ? Arrays.asList(tokenArray) : null;
|
||||||
|
|
Loading…
Reference in New Issue