|
@@ -109,10 +109,13 @@ public final class InvalidateApiKeyResponse extends ActionResponse implements To
|
|
|
out.writeCollection(errors, StreamOutput::writeException);
|
|
|
}
|
|
|
|
|
|
- static ConstructingObjectParser<InvalidateApiKeyResponse, Void> PARSER = new ConstructingObjectParser<>("invalidate_api_key_response",
|
|
|
- args -> {
|
|
|
- return new InvalidateApiKeyResponse((List<String>) args[0], (List<String>) args[1], (List<ElasticsearchException>) args[3]);
|
|
|
- });
|
|
|
+ @SuppressWarnings("unchecked")
|
|
|
+ static final ConstructingObjectParser<InvalidateApiKeyResponse, Void> PARSER = new ConstructingObjectParser<>(
|
|
|
+ "invalidate_api_key_response",
|
|
|
+ args -> {
|
|
|
+ return new InvalidateApiKeyResponse((List<String>) args[0], (List<String>) args[1], (List<ElasticsearchException>) args[3]);
|
|
|
+ }
|
|
|
+ );
|
|
|
static {
|
|
|
PARSER.declareStringArray(constructorArg(), new ParseField("invalidated_api_keys"));
|
|
|
PARSER.declareStringArray(constructorArg(), new ParseField("previously_invalidated_api_keys"));
|