Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      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); }

        Activity

        Hide
        Henri Yandell added a comment -

        Thanks Michael, fix committed.

        Show
        Henri Yandell added a comment - Thanks Michael, fix committed.

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael Ernst
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 0.05h
              0.05h
              Remaining:
              Remaining Estimate - 0.05h
              0.05h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development