From aa6b11f88085a149b70b3f55fbae7928280c2b74 Mon Sep 17 00:00:00 2001 From: gahissy Date: Tue, 2 May 2017 23:34:32 +0100 Subject: Remove Apache Commons StringUtils reference --- src/org/traccar/Config.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/org/traccar/Config.java b/src/org/traccar/Config.java index 414ccb6d3..e9b17a33b 100644 --- a/src/org/traccar/Config.java +++ b/src/org/traccar/Config.java @@ -15,8 +15,6 @@ */ package org.traccar; -import org.apache.commons.lang3.StringUtils; - import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; @@ -56,7 +54,7 @@ public class Config { public String getString(String key) { String envName = key.toUpperCase().replaceAll("\\.", "_"); String envValue = System.getenv(envName); - if (StringUtils.isNotBlank(envValue)) { + if (envValue != null && !envValue.isEmpty()) { return envValue; } return properties.getProperty(key); -- cgit v1.2.3