OpenSearch/libs
Tianli Feng b1aa3671b5
Fix resource leak issues suggested by Amazon CodeGuru (#816) (#859)
* Add try-with-resources block to automatically close the resources after using to avoid resource leak, in `SymbolicLinkPreservingTarIT`, `LicenseAnalyzer`, `SymbolicLinkPreservingUntarTransform`, `ConcurrentSeqNoVersioningIT` in `VersionProperties`, `GeoFilterIT`, `XContentHelper`,  `Json` and `IndexShard` class

* Add try-finally block to close the resources after using to avoid resource leak, in `ServerChannelContext` class.

* Add try-catch block to close the resources when exception occurs in `FsBlobContainer` class (when XContentFactory.xContentType throws an exception).

* Close resources when assertion error occurs, in `ServerChannelContext` class.
2021-06-22 10:19:01 -07:00
..
cli [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
core [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
dissect [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
geo [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
grok [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
nio Fix resource leak issues suggested by Amazon CodeGuru (#816) (#859) 2021-06-22 10:19:01 -07:00
plugin-classloader [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
secure-sm [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
ssl-config Converted all .asciidoc to .md. (#658) 2021-05-06 20:12:49 +00:00
x-content [CVE] Upgrade dependencies to mitigate CVEs (#657) (#737) 2021-05-19 21:20:53 -07:00
build.gradle [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00