Uploaded image for project: 'Polygene'
  1. Polygene
  2. POLYGENE-66

UnitOfWork should leverage Java 7 AutoCloseable and try-with-resources

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1

    Description

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

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

      Attachments

        Activity

          People

            eskatos Paul Merlin
            eskatos Paul Merlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: