aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Config.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 16:53:14 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 16:53:14 +1300
commitc64a77edfdcd6ed4e7cb61bef5e3f2762a607da7 (patch)
tree470f3e9d8ceae5f8fe7eadc69bf82f9ef8368c6e /src/org/traccar/Config.java
parent65d2e3b04e3d32245456e7520796cdf7e9def692 (diff)
downloadtrackermap-server-c64a77edfdcd6ed4e7cb61bef5e3f2762a607da7.tar.gz
trackermap-server-c64a77edfdcd6ed4e7cb61bef5e3f2762a607da7.tar.bz2
trackermap-server-c64a77edfdcd6ed4e7cb61bef5e3f2762a607da7.zip
Replace valueOf with parseXxx
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;
}