From d4dbf85d9536bfec85252a58fc552e2bad42ff17 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 4 Oct 2015 13:20:46 +1300 Subject: Remove trailing whitespaces from code --- src/org/traccar/Config.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/org/traccar/Config.java') diff --git a/src/org/traccar/Config.java b/src/org/traccar/Config.java index 90f064601..85a47cf66 100644 --- a/src/org/traccar/Config.java +++ b/src/org/traccar/Config.java @@ -22,23 +22,23 @@ import java.util.Properties; public class Config { private final Properties properties = new Properties(); - + public void load(String file) throws IOException { properties.loadFromXML(new FileInputStream(file)); } - + public boolean hasKey(String key) { return properties.containsKey(key); } - + public boolean getBoolean(String key) { return Boolean.valueOf(properties.getProperty(key)); } - + public int getInteger(String key) { return getInteger(key, 0); } - + public int getInteger(String key, int defaultValue) { if (properties.containsKey(key)) { return Integer.valueOf(properties.getProperty(key)); @@ -46,11 +46,11 @@ public class Config { return defaultValue; } } - + public long getLong(String key) { return getLong(key, 0); } - + public long getLong(String key, long defaultValue) { if (properties.containsKey(key)) { return Long.valueOf(properties.getProperty(key)); @@ -58,11 +58,11 @@ public class Config { return defaultValue; } } - + public String getString(String key) { return properties.getProperty(key); } - + public String getString(String key, String defaultValue) { if (properties.containsKey(key)) { return properties.getProperty(key); @@ -70,5 +70,5 @@ public class Config { return defaultValue; } } - + } -- cgit v1.2.3