elasticsearch/elasticsearch — pull request #7212 by obourgain (2014-08-08 21:51:37+00:00)
Title: Small improvment of the XContentBuilder API

The XContentBuilder.map(Map) method could be modified to use a wildcard for value's type.

This could make the API slightly more convenient.
For exemple, when I got a org.elasticsearch.common.settings.Settings and call getAsMap(), it returns a Map that can not be passed to map(Map).

Users of the current API are forced to pass a Map, but any reference with such type can be passed to Map, so they will require no changes.
Consumers of a Map get Object as type for the entry.getValue(), as in XContentBuilder.writeMap(), so it will require no changes here.