mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
It's less code and it actually inlines (avoiding virtual calls in most cases) to just do the null check here instead of delegating to IOUtils and then catching the impossible IOException. Also, no need to use `Releaseables` in 2 spots where try-with-resources works as well and needs less code. Noticed this when I saw that we had a lot of strange CPU overhead in this call in some hot loops like translog writes. |
||
---|---|---|
.. | ||
src | ||
build.gradle |