Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5931

Use try-with-resources where possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.2SDK
    • None
    • None

    Description

      The try-with-resources statement allows writing code dealing with resources in a more compact way. It is no longer necessary to write finally blocks by hand.

      This patch replaces as many as possible try statements with the try-with-resources statement.

      Attachments

        1. uima-try-with-resources.patch
          55 kB
          Jörn Kottmann

        Activity

          People

            schor Marshall Schor
            joern Jörn Kottmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: