Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-820

foreach support for Closeable Iterator

    Details

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

      Description

      would be nice if #foreach would do close the iterator if it implements Closeable. This will allow better resource management when using foreach to do things like run sql queries, etc.

        Attachments

        1. foreach.diff
          0.9 kB
          Robert Fuller

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fullergalway Robert Fuller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: