Skip to content

Commit

Permalink
Ignore deprecation warnings for now
Browse files Browse the repository at this point in the history
  • Loading branch information
JuicyDragon committed Oct 15, 2021
1 parent 932b76f commit 43a51bb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class ZipHelper {
* @throws IOException Thrown if there are issues with IO
* @throws FileNotFoundException Thrown if file is not found
*/
@SuppressWarnings("deprecation")
public static void compressDirectoryToZipFile(String directory, String zipFile, int compressionLevel) throws IOException, FileNotFoundException {
ZipOutputStream zipStream = null;
try{
Expand All @@ -40,6 +41,7 @@ public static void compressDirectoryToZipFile(String directory, String zipFile,
* @throws IOException Thrown if there are issues with IO
* @throws FileNotFoundException Thrown if file is not found
*/
@SuppressWarnings("deprecation")
private static void compressDirectoryToZipfile(String rootDir, String sourceDir, ZipOutputStream out) throws IOException, FileNotFoundException {
for (File file : new File(sourceDir).listFiles()) {
if (file.isDirectory()) {
Expand Down

0 comments on commit 43a51bb

Please sign in to comment.