You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Ernst (JIRA)" <ji...@apache.org> on 2008/09/08 20:03:44 UTC

[jira] Created: (IO-180) LineIterator documentation

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.


[jira] Closed: (IO-180) LineIterator documentation

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (IO-180) LineIterator documentation

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ 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.