You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@polygene.apache.org by "Paul Merlin (JIRA)" <ji...@apache.org> on 2015/07/10 12:24:06 UTC

[jira] [Created] (ZEST-66) UnitOfWork should leverage Java 7 AutoCloseable and try-with-resources

Paul Merlin created ZEST-66:
-------------------------------

             Summary: UnitOfWork should leverage Java 7 AutoCloseable and try-with-resources
                 Key: ZEST-66
                 URL: https://issues.apache.org/jira/browse/ZEST-66
             Project: Zest
          Issue Type: Improvement
            Reporter: Paul Merlin
            Assignee: Paul Merlin
             Fix For: 2.1


{code:java}
try( UnitOfWork uow = module.newUnitOfWork() )
{
    // ...
    uow.complete();
}
{code}


See https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)