Commit c0adc3ec authored by helene ortiz's avatar helene ortiz
Browse files

Remove leading and trailing whitespace omitted in properties.

parent 200fe720
4.0.10 DD/MM/YYYY
------
* Remove leading and trailing whitespace omitted in properties.
4.0.10 20/05/2020
------
......
......@@ -346,7 +346,7 @@ public class ConfigManager {
* @return the boolean value that match with the propertyName in the config file
*/
public synchronized boolean getBoolean(String propertyName) {
return Boolean.valueOf(properties.getProperty(propertyName));
return Boolean.valueOf(properties.getProperty(propertyName).trim());
}
......@@ -356,7 +356,7 @@ public class ConfigManager {
* @return the integer value that match with the propertyName in the config file
*/
public synchronized int getInt(String propertyName) {
return Integer.valueOf(properties.getProperty(propertyName));
return Integer.valueOf(properties.getProperty(propertyName).trim());
}
......@@ -612,7 +612,7 @@ public class ConfigManager {
public boolean mockMode() {
String value = getStringOrNothingAtAll("mockMode");
if (value != null) {
return Boolean.valueOf(value);
return Boolean.valueOf(value.trim());
}
return false;
}
......@@ -620,7 +620,7 @@ public class ConfigManager {
public int getPlotyVersion() {
String value = getStringOrNothingAtAll("plotyVersion");
if (value != null) {
return Integer.valueOf(value);
return Integer.valueOf(value.trim());
}
return 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment