commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Mazursky (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IO-388) CloseAllQuietly Method
Date Sat, 12 Apr 2014 05:36:15 GMT

    [ https://issues.apache.org/jira/browse/IO-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13967412#comment-13967412
] 

Mikhail Mazursky commented on IO-388:
-------------------------------------

It's a bad idea to provide such method - as practice shows it is very often misused. Take
a look at the discussion here https://code.google.com/p/guava-libraries/issues/detail?id=1118

> CloseAllQuietly Method
> ----------------------
>
>                 Key: IO-388
>                 URL: https://issues.apache.org/jira/browse/IO-388
>             Project: Commons IO
>          Issue Type: Wish
>            Reporter: BELUGA BEHR
>            Priority: Minor
>
> public static void closeAllQuietly(Closeable... closables) {
>     for (Closeable closable : closables)
>     {
>         closeQuietly(closable);
>     }
> }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message