polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niclas Hedhman (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (ZEST-66) UnitOfWork should leverage Java 7 AutoCloseable and try-with-resources
Date Sat, 22 Aug 2015 06:12:47 GMT

     [ https://issues.apache.org/jira/browse/ZEST-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niclas Hedhman closed ZEST-66.
------------------------------

Closing all fixed issues.

> 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
>              Labels: unitofwork
>             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)

Mime
View raw message