OpenSearch/modules/ingest-common
Lee Hinman e7d1e12675
Wrap stream passed to createParser in try-with-resources (#28897)
* Wrap stream passed to createParser in try-with-resources

This wraps the stream (`.streamInput()`) that is passed to many of the
`createParser` instances in the enclosing (or a new) try-with-resources block.
This ensures the `BytesReference.streamInput()` is closed.

Relates to #28504

* Use try-with-resources instead of closing in a finally block
2018-03-04 16:48:03 -07:00
..
src Wrap stream passed to createParser in try-with-resources (#28897) 2018-03-04 16:48:03 -07:00
build.gradle renamed module 2018-02-20 08:02:02 +01:00