aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-10-02 09:47:51 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-10-02 09:47:51 +0200
commitdedb4687f46c0ea10539edc38206d440fe0c806e (patch)
treeb865404250171dc46d1bae04ee1a0927488c6beb
parent750d845475d36db59ef8b21da68dd0161e0f75ab (diff)
downloadmoa-zs-dedb4687f46c0ea10539edc38206d440fe0c806e.tar.gz
moa-zs-dedb4687f46c0ea10539edc38206d440fe0c806e.tar.bz2
moa-zs-dedb4687f46c0ea10539edc38206d440fe0c806e.zip
Fix Bug: Replace Boolean.getBoolean with Boolean.valueOf
- getBoolean:= true if system property exists and is true. - valueOf:= true if parameter == "true" (case insensitive).
-rw-r--r--src/main/java/at/gv/egiz/moazs/preprocess/ConfigUtil.java5
1 files 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<String, String> 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) {