LineIterator should call close on itself when hasNext() returns false.
----------------------------------------------------------------------

                 Key: IO-123
                 URL: https://issues.apache.org/jira/browse/IO-123
             Project: Commons IO
          Issue Type: Improvement
          Components: Utilities
    Affects Versions: 1.3.1
            Reporter: Dalibor Novak
            Priority: Minor
             Fix For: 1.3.2


LineIterator should call close on itself when hasNext() returns false. This 
would enable us to write something like this:

for (LineIterator lit = FileUtils.lineIterator(csvFile); lit.hasNext(); )
{
    //do something
}



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to