aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Config.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/Config.java')
-rw-r--r--src/org/traccar/Config.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/Config.java b/src/org/traccar/Config.java
index 85a47cf66..719f23038 100644
--- a/src/org/traccar/Config.java
+++ b/src/org/traccar/Config.java
@@ -32,7 +32,7 @@ public class Config {
}
public boolean getBoolean(String key) {
- return Boolean.valueOf(properties.getProperty(key));
+ return Boolean.parseBoolean(properties.getProperty(key));
}
public int getInteger(String key) {
@@ -41,7 +41,7 @@ public class Config {
public int getInteger(String key, int defaultValue) {
if (properties.containsKey(key)) {
- return Integer.valueOf(properties.getProperty(key));
+ return Integer.parseInt(properties.getProperty(key));
} else {
return defaultValue;
}
@@ -53,7 +53,7 @@ public class Config {
public long getLong(String key, long defaultValue) {
if (properties.containsKey(key)) {
- return Long.valueOf(properties.getProperty(key));
+ return Long.parseLong(properties.getProperty(key));
} else {
return defaultValue;
}