You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/10/05 04:40:02 UTC
[GitHub] dlg99 opened a new issue #1740: IOUtils.close() only accepts
Closeable as a vararg which results in unnecessary Object[] created if only
one Closeable passed there
dlg99 opened a new issue #1740: IOUtils.close() only accepts Closeable as a vararg which results in unnecessary Object[] created if only one Closeable passed there
URL: https://github.com/apache/bookkeeper/issues/1740
**BUG REPORT**
1. Please describe the issue you observed:
IOUtils.close() only accepts Closeable as a vararg which results in unnecessary Object[] created if only one Closeable passed there
100% of close() usage is with only one Closeable.
While it is not very often used (log rotation, shutdown etc) we can still avoid this extra allocation.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services