Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
XContentBuilder.map(Map) method modified to use a wildcard for value's type. #7212
The XContentBuilder.map(Map<String, Object>) method could be modified to use a wildcard for value's type.
This could make the API slightly more convenient.
Users of the current API are forced to pass a Map<String, Object>, but any reference with such type can be passed to Map<String, ?>, so they will require no changes.
This could be backported easily to other branches.
@obourgain The change looks good to me. Could I ask you to sign the CLA so that I can get it merged in?