Use try-with-resources where feasible

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • internal
    • Affects Version/s: internal
    • Component/s: tools

      There are several places in jpackage where we do I/O with explicit calls to close the stream. Several of them are even missing try-finally blocks. We should modify as many of these as is feasible to use try-with-resources so the code will be more robust.

      A partial list of classes that could be fixed includes:

      IOUtils, LinuxAppImageBuilder, LinuxDebBundler, LinuxRpmBundler, MacAppImageBuilder, etc.

            Assignee:
            Andy Herrick (Inactive)
            Reporter:
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: