commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Closed: (IO-180) LineIterator documentation
Date Thu, 11 Sep 2008 10:01:44 GMT

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

Henri Yandell closed IO-180.
----------------------------

       Resolution: Fixed
    Fix Version/s: 1.5

Thanks Michael, fix committed. 

> LineIterator documentation 
> ---------------------------
>
>                 Key: IO-180
>                 URL: https://issues.apache.org/jira/browse/IO-180
>             Project: Commons IO
>          Issue Type: Bug
>    Affects Versions: 1.4
>            Reporter: Michael Ernst
>            Priority: Minor
>             Fix For: 1.5
>
>   Original Estimate: 0.05h
>  Remaining Estimate: 0.05h
>
> In the Javadoc for rg.apache.commons.io.LineIterator (in Commons IO 1.4),
> this code snippet is incorrect:  the last instance of "iterator" should be
> "it".
>   LineIterator it = FileUtils.lineIterator(file, "UTF-8");
>    try {
>      while (it.hasNext()) {
>        String line = it.nextLine();
>        /// do something with line
>      }
>    } finally {
>      LineIterator.closeQuietly(iterator);
>    }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message