OpenSearch/buildSrc
Tianli Feng 110cef7882
Fix resource leak issues suggested by Amazon CodeGuru (#816)
* Address a kind of issue suggested by Amazon CodeGuru Reviewer:

* 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-15 09:31:36 -07:00
..
reaper Fix Javadoc errors in `client/sniffer` (#802) 2021-06-03 17:08:16 -07:00
src Fix resource leak issues suggested by Amazon CodeGuru (#816) 2021-06-15 09:31:36 -07:00
.gitignore Build: Add fake project to include buildSrc as normal project 2016-05-06 22:26:15 -07:00
build.gradle [CVE] Upgrade dependencies to mitigate CVEs (#657) 2021-05-18 11:37:24 -07:00
formatterConfig.xml [Rename] buildSrc directory, build-tools module (#182) 2021-03-21 20:56:34 -05:00
settings.gradle [License] Add SPDX and OpenSearch Modification license header (#509) 2021-04-09 14:28:18 -05:00
version.properties [CVE] Upgrade dependencies to mitigate CVEs (#657) 2021-05-18 11:37:24 -07:00