supprot 1 as true for boolean setting
This commit is contained in:
parent
e195ec6295
commit
f7d152821d
|
@ -155,7 +155,7 @@ public class ImmutableSettings implements Settings {
|
|||
return defaultValue;
|
||||
}
|
||||
try {
|
||||
return Boolean.valueOf(sValue);
|
||||
return sValue.equals("true") || sValue.equals("1");
|
||||
} catch (NumberFormatException e) {
|
||||
throw new SettingsException("Failed to parse boolean setting [" + setting + "] with value [" + sValue + "]", e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue