From dedb4687f46c0ea10539edc38206d440fe0c806e Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Wed, 2 Oct 2019 09:47:51 +0200 Subject: Fix Bug: Replace Boolean.getBoolean with Boolean.valueOf - getBoolean:= true if system property exists and is true. - valueOf:= true if parameter == "true" (case insensitive). --- src/main/java/at/gv/egiz/moazs/preprocess/ConfigUtil.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/at/gv/egiz/moazs/preprocess/ConfigUtil.java b/src/main/java/at/gv/egiz/moazs/preprocess/ConfigUtil.java index d256616..88a2d0f 100644 --- a/src/main/java/at/gv/egiz/moazs/preprocess/ConfigUtil.java +++ b/src/main/java/at/gv/egiz/moazs/preprocess/ConfigUtil.java @@ -55,8 +55,7 @@ public class ConfigUtil { * @return Config */ public ConfigType convert(Map values) { - Boolean performQueryPersonRequest = values.get(TNVZ_REQUEST_KEY) == null - ? null : Boolean.getBoolean(values.get(TNVZ_REQUEST_KEY)); + Boolean performQueryPersonRequest = booleanOrNull(values.get(TNVZ_REQUEST_KEY)); var msgClientParams = filterMapByPrefix(values, MSG_CLIENT_KEY); ClientType msgClient = msgClientParams.isEmpty() @@ -186,7 +185,7 @@ public class ConfigUtil { private Boolean booleanOrNull(String value) { - return value == null ? null : Boolean.getBoolean(value); + return value == null ? null : Boolean.valueOf(value); } private BigInteger bigIntOrNull(String value) { -- cgit v1.2.3