commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Ernst (JIRA)" <j...@apache.org>
Subject [jira] Created: (IO-180) LineIterator documentation
Date Mon, 08 Sep 2008 18:03:44 GMT
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


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