commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (IO-430) IOUtils.copy(IS, Writer) implementation and javadoc disagrees
Date Sun, 23 Apr 2017 18:28:04 GMT

     [ https://issues.apache.org/jira/browse/IO-430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pascal Schumacher closed IO-430.
--------------------------------
    Resolution: Invalid

> IOUtils.copy(IS, Writer) implementation and javadoc disagrees
> -------------------------------------------------------------
>
>                 Key: IO-430
>                 URL: https://issues.apache.org/jira/browse/IO-430
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.5
>            Reporter: Bernd Eckenfels
>            Priority: Minor
>              Labels: javadoc
>
> The Javadoc of the (deprecated) IOUtils.copy(InputStream,Writer) states:
> {code}
>   * This method uses {@link InputStreamReader}.
> {code}
> but the actual code does not:
> {code}
>     @Deprecated
>     public static void copy(final InputStream input, final Writer output)
>             throws IOException {
>         copy(input, output, Charset.defaultCharset());
>     }
> {code}
> My suggestion would be to change the javadoc to state "@link copy(InputStream, Writer,
Charset)} with @{code Charset.defaultCharset()}"



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message