From f741713458df29630a75ac9ed079321ff02dcd5c Mon Sep 17 00:00:00 2001 From: janmadle <85927377+janmadle@users.noreply.github.com> Date: Fri, 12 Nov 2021 09:16:13 +0100 Subject: [PATCH] fixed missing parameter Fixed not working example - Added missing zipParameters to .addFile() function --- .../src/main/java/com/baeldung/java/io/zip4j/ZipSingleFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries-io/src/main/java/com/baeldung/java/io/zip4j/ZipSingleFile.java b/libraries-io/src/main/java/com/baeldung/java/io/zip4j/ZipSingleFile.java index d0947afa2e..7639a2e9df 100644 --- a/libraries-io/src/main/java/com/baeldung/java/io/zip4j/ZipSingleFile.java +++ b/libraries-io/src/main/java/com/baeldung/java/io/zip4j/ZipSingleFile.java @@ -21,7 +21,7 @@ public class ZipSingleFile { if (!fileToAdd.exists()) { fileToAdd.createNewFile(); } - zipFile.addFile(fileToAdd); + zipFile.addFile(fileToAdd, zipParameters); zipFile.close(); } }