From 277f49b9ca23bd89c5d8b45fa827c542e3100e11 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Fri, 26 Oct 2018 20:42:18 -0400 Subject: [PATCH] HLRC: Drop extra level from user parser (#34932) It had support for an object between `created` and the root that we don't return in 7.0+. --- .../java/org/elasticsearch/client/security/PutUserResponse.java | 1 - 1 file changed, 1 deletion(-) diff --git a/client/rest-high-level/src/main/java/org/elasticsearch/client/security/PutUserResponse.java b/client/rest-high-level/src/main/java/org/elasticsearch/client/security/PutUserResponse.java index 73b57fb57ec..e97e4f01258 100644 --- a/client/rest-high-level/src/main/java/org/elasticsearch/client/security/PutUserResponse.java +++ b/client/rest-high-level/src/main/java/org/elasticsearch/client/security/PutUserResponse.java @@ -62,7 +62,6 @@ public final class PutUserResponse { static { PARSER.declareBoolean(constructorArg(), new ParseField("created")); - PARSER.declareObject((a,b) -> {}, (parser, context) -> null, new ParseField("user")); // ignore the user field! } public static PutUserResponse fromXContent(XContentParser parser) throws IOException {