From 6a692f361c7d6e88c619cbc26d339701840680c2 Mon Sep 17 00:00:00 2001 From: Dan Hart Date: Wed, 25 Jan 2023 12:00:03 -0500 Subject: [PATCH] Remove commented code Signed-off-by: Dan Hart --- .../java/org/opensearch/client/json/UnionDeserializer.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/java-client/src/main/java/org/opensearch/client/json/UnionDeserializer.java b/java-client/src/main/java/org/opensearch/client/json/UnionDeserializer.java index 568d32083a..3905139a80 100644 --- a/java-client/src/main/java/org/opensearch/client/json/UnionDeserializer.java +++ b/java-client/src/main/java/org/opensearch/client/json/UnionDeserializer.java @@ -171,13 +171,6 @@ public Builder addMember(Kind tag, JsonpDeserializer unwrapped = DelegatingDeserializer.unwrap(deserializer); if (unwrapped instanceof ObjectDeserializer) { ObjectDeserializer od = (ObjectDeserializer) unwrapped; -// Set allFields = od.fieldNames(); -// Set fields = new HashSet<>(allFields); // copy to update -// for (UnionDeserializer.SingleMemberHandler member: objectMembers) { -// // Remove respective fields on both sides to keep specific ones -// fields.removeAll(member.fields); -// member.fields.removeAll(allFields); -// } UnionDeserializer.SingleMemberHandler member = new SingleMemberHandler<>(tag, deserializer, new HashSet<>(od.fieldNames())); objectMembers.add(member);