[ https://issues.apache.org/jira/browse/PIVOT-968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roger Whitcomb updated PIVOT-968: --------------------------------- Attachment: resources.diffs "resources.diffs" shows a start at using try-with-resources in some of the Pivot code (but only applicable to "trunk" that is built with Java 7). > Use try-with-resources internally now that Java 7 is required > ------------------------------------------------------------- > > Key: PIVOT-968 > URL: https://issues.apache.org/jira/browse/PIVOT-968 > Project: Pivot > Issue Type: Improvement > Components: core-io, core-serialization, wtk, wtk-terra > Affects Versions: 2.1 > Environment: All > Reporter: Roger Whitcomb > Assignee: Roger Whitcomb > Priority: Minor > Fix For: 2.1 > > Attachments: resources.diffs > > > 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). -- This message was sent by Atlassian JIRA (v6.3.4#6332)