From 63e243d01fdedf84fe36287e75ae58e064d3e673 Mon Sep 17 00:00:00 2001 From: Emina Ahmetovic Date: Mon, 2 Nov 2020 08:38:55 +0100 Subject: change properties --- .../pdfas/lib/impl/configuration/PlaceholderWebConfiguration.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderWebConfiguration.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderWebConfiguration.java index 8c63ed02..3a78f24f 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderWebConfiguration.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/PlaceholderWebConfiguration.java @@ -6,8 +6,10 @@ public class PlaceholderWebConfiguration { protected static Properties properties = new Properties(); + //todo properties not cleaned public static void setValue(String key, String value) { + properties.clear(); properties.setProperty(key,value); } public static String getValue(String key) @@ -15,4 +17,8 @@ public class PlaceholderWebConfiguration { return properties.getProperty(key); } + public static void clear () { + properties.clear(); + } + } -- cgit v1.2.3