From 4fc5648c4ff3ad0bfd12acda567a365eb0b15cca Mon Sep 17 00:00:00 2001 From: fabianArbeit Date: Wed, 6 Nov 2024 10:09:36 +0100 Subject: [PATCH] - make constants final - added constant for temp dir - redacted path to specific temp dir --- FabianUtil.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/FabianUtil.java b/FabianUtil.java index cf8487a..d6d827e 100644 --- a/FabianUtil.java +++ b/FabianUtil.java @@ -11,11 +11,12 @@ import java.time.temporal.ChronoUnit; public class FabianUtil { - public static String ENDING_TXT = "txt"; - public static String ENDING_JSON = "json"; - public static String ENDING_HTML = "html"; - public static String ENDING_PDF = "pdf"; - public static String ENDING_TIFF = "tiff"; + private static final String STD_DIR_TEMP = "/FIXME/temp/"; + public static final String ENDING_TXT = "txt"; + public static final String ENDING_JSON = "json"; + public static final String ENDING_HTML = "html"; + public static final String ENDING_PDF = "pdf"; + public static final String ENDING_TIFF = "tiff"; private FabianUtil() {} @@ -191,7 +192,7 @@ public class FabianUtil { public static void writeTestOutput(String filename, String ending, byte[] content) { - writeToFile("C:/theo_dev/temp/testOutput/", filename, ending, content); + writeToFile(STD_DIR_TEMP + "testOutput/", filename, ending, content); } @@ -201,7 +202,7 @@ public class FabianUtil { public static void writeDump(String ending, byte[] content) { - writeToFile("C:/theo_dev/temp/", "dump", ending, content); + writeToFile(STD_DIR_TEMP, "dump", ending, content); } @@ -211,7 +212,7 @@ public class FabianUtil { public static void writeDump(String filename, String ending, byte[] content) { - writeToFile("C:/theo_dev/temp/", filename, ending, content); + writeToFile(STD_DIR_TEMP, filename, ending, content); }