Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-968

Use try-with-resources

    XMLWordPrintableJSON

    Details

      Description

      Java 7 introduced a "try-with-resources" statement that automatically calls the "close()" method for resources that implement the (new) AutoCloseable interface, which includes most/all I/O related objects, and more. Pivot could benefit internally with more readable / maintainable code using this construct. Since Java 7 is now required for the 2.1 (and later) releases, this is a reasonable step to upgrade the code internally (see PIVOT-895).

        Attachments

        1. resources.diffs
          21 kB
          Roger Lee Whitcomb

          Issue Links

            Activity

              People

              • Assignee:
                rwhitcomb Roger Lee Whitcomb
                Reporter:
                rwhitcomb Roger Lee Whitcomb
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: