Uploaded image for project: 'BuildTools'
  1. BuildTools
  2. BUILDTOOLS-19

The ZipFile zip is never closed

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None

      To prevent memory leaks the zip Resource should be closed.

      in public static void unzip(File zipFile, File targetFolder, Predicate<String> filter) throws IOException

      ZipFile zip = new ZipFile(zipFile);
      

      Should be closed at the end of the method

            Unassigned Unassigned
            xGhOsTkiLLeRx xGhOsTkiLLeRx
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: