From 44ffc5961daaa1de9d92413a29c363573d04112d Mon Sep 17 00:00:00 2001
From: OZG-Cloud Team <noreply@ozg-sh.de>
Date: Thu, 6 Jun 2024 08:31:29 +0200
Subject: [PATCH] OZG-5412 removed unnecessary method

---
 .../java/de/ozgcloud/eingang/xta/zip/ZipFileExtractor.java | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/xta-adapter/src/main/java/de/ozgcloud/eingang/xta/zip/ZipFileExtractor.java b/xta-adapter/src/main/java/de/ozgcloud/eingang/xta/zip/ZipFileExtractor.java
index 8f162061..ed6cf366 100644
--- a/xta-adapter/src/main/java/de/ozgcloud/eingang/xta/zip/ZipFileExtractor.java
+++ b/xta-adapter/src/main/java/de/ozgcloud/eingang/xta/zip/ZipFileExtractor.java
@@ -41,8 +41,8 @@ public class ZipFileExtractor {
 	}
 
 	private void verifySizeLimit(long uncompressedSize) {
-		if (uncompressedSize > getZipMaxTotalSize()) {
-			throw new TechnicalException("Expect uncompressed size %s to be smaller than %d!".formatted(uncompressedSize, getZipMaxTotalSize()));
+		if (uncompressedSize > ZIP_MAX_TOTAL_SIZE) {
+			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 {
 		}
 	}
 
-	int getZipMaxTotalSize() {
-		return ZIP_MAX_TOTAL_SIZE;
-	}
 
 	Long sumUncompressedEntrySizes(File zipFile) {
 		return mapZipEntries(zipFile, ReadableZipEntry::getPositiveSize)
-- 
GitLab