Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Hart <[email protected]>
  • Loading branch information
iamdanhart committed Jan 25, 2023
1 parent 23baad9 commit 6a692f3
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,6 @@ public Builder<Union, Kind, Member> addMember(Kind tag, JsonpDeserializer<? exte
JsonpDeserializer<?> unwrapped = DelegatingDeserializer.unwrap(deserializer);
if (unwrapped instanceof ObjectDeserializer) {
ObjectDeserializer<?> od = (ObjectDeserializer<?>) unwrapped;
// Set<String> allFields = od.fieldNames();
// Set<String> fields = new HashSet<>(allFields); // copy to update
// for (UnionDeserializer.SingleMemberHandler<Union, Kind, Member> member: objectMembers) {
// // Remove respective fields on both sides to keep specific ones
// fields.removeAll(member.fields);
// member.fields.removeAll(allFields);
// }
UnionDeserializer.SingleMemberHandler<Union, Kind, Member> member =
new SingleMemberHandler<>(tag, deserializer, new HashSet<>(od.fieldNames()));
objectMembers.add(member);
Expand Down

0 comments on commit 6a692f3

Please sign in to comment.