java.asciidoc 444 B

123456789
  1. [[breaking_60_java_changes]]
  2. === Java API changes
  3. ==== `setSource` methods require XContentType
  4. Previously the `setSource` methods and other methods that accepted byte/string representations of
  5. an object source did not require the XContentType to be specified. The auto-detection of the content
  6. type is no longer used, so these methods now require the XContentType as an additional argument when
  7. providing the source in bytes or as a string.