[ https://issues.apache.org/jira/browse/IO-180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting updated IO-180: ----------------------------- Fix Version/s: (was: 1.5) 2.0 > 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: 2.0 > > 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.