commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IO-430) IOUtils.copy(IS, Writer) implementation and javadoc disagrees
Date Wed, 12 Mar 2014 21:44:42 GMT
Bernd Eckenfels created IO-430:
----------------------------------

             Summary: 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


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.2#6252)

Mime
View raw message