From 1499e787957f977900d595e1fab0ae20e0d2bdd5 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Wed, 31 May 2023 20:37:13 +0100 Subject: [PATCH] GeneralUtils --- .../SPDF/controller/api/other/CompressController.java | 4 ++-- .../SPDF/utils/{GeneralFileUtils.java => GeneralUtils.java} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/java/stirling/software/SPDF/utils/{GeneralFileUtils.java => GeneralUtils.java} (97%) diff --git a/src/main/java/stirling/software/SPDF/controller/api/other/CompressController.java b/src/main/java/stirling/software/SPDF/controller/api/other/CompressController.java index 1b77d67b..d8917bea 100644 --- a/src/main/java/stirling/software/SPDF/controller/api/other/CompressController.java +++ b/src/main/java/stirling/software/SPDF/controller/api/other/CompressController.java @@ -31,7 +31,7 @@ import org.springframework.web.multipart.MultipartFile; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.media.Schema; -import stirling.software.SPDF.utils.GeneralFileUtils; +import stirling.software.SPDF.utils.GeneralUtils; import stirling.software.SPDF.utils.ProcessExecutor; import stirling.software.SPDF.utils.WebResponseUtils; @@ -56,7 +56,7 @@ public class CompressController { Long expectedOutputSize = 0L; boolean autoMode = false; if (expectedOutputSizeString != null && expectedOutputSizeString.length() > 1 ) { - expectedOutputSize = GeneralFileUtils.convertSizeToBytes(expectedOutputSizeString); + expectedOutputSize = GeneralUtils.convertSizeToBytes(expectedOutputSizeString); autoMode = true; } diff --git a/src/main/java/stirling/software/SPDF/utils/GeneralFileUtils.java b/src/main/java/stirling/software/SPDF/utils/GeneralUtils.java similarity index 97% rename from src/main/java/stirling/software/SPDF/utils/GeneralFileUtils.java rename to src/main/java/stirling/software/SPDF/utils/GeneralUtils.java index f5a7254c..0d8325e4 100644 --- a/src/main/java/stirling/software/SPDF/utils/GeneralFileUtils.java +++ b/src/main/java/stirling/software/SPDF/utils/GeneralUtils.java @@ -1,6 +1,6 @@ package stirling.software.SPDF.utils; -public class GeneralFileUtils { +public class GeneralUtils { public static Long convertSizeToBytes(String sizeStr) { if (sizeStr == null) {