Skip to content
Snippets Groups Projects
Commit 175cd332 authored by Jörg Bolay's avatar Jörg Bolay
Browse files

OZG-5412 removed unnecessary method

parent e2e5449d
Branches
Tags
No related merge requests found
...@@ -41,8 +41,8 @@ public class ZipFileExtractor { ...@@ -41,8 +41,8 @@ public class ZipFileExtractor {
} }
private void verifySizeLimit(long uncompressedSize) { private void verifySizeLimit(long uncompressedSize) {
if (uncompressedSize > getZipMaxTotalSize()) { if (uncompressedSize > ZIP_MAX_TOTAL_SIZE) {
throw new TechnicalException("Expect uncompressed size %s to be smaller than %d!".formatted(uncompressedSize, getZipMaxTotalSize())); throw new TechnicalException("Expect uncompressed size %s to be smaller than %d!".formatted(uncompressedSize, ZIP_MAX_TOTAL_SIZE));
} }
} }
...@@ -55,9 +55,6 @@ public class ZipFileExtractor { ...@@ -55,9 +55,6 @@ public class ZipFileExtractor {
} }
} }
int getZipMaxTotalSize() {
return ZIP_MAX_TOTAL_SIZE;
}
Long sumUncompressedEntrySizes(File zipFile) { Long sumUncompressedEntrySizes(File zipFile) {
return mapZipEntries(zipFile, ReadableZipEntry::getPositiveSize) return mapZipEntries(zipFile, ReadableZipEntry::getPositiveSize)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment