[Minor] BooleanParameter is now more restrictive on parsing from string
We only want the string literals true and false to parse
This commit is contained in:
parent
95117bdf88
commit
c24e01cdc8
|
@ -44,7 +44,7 @@ public class BooleanParameter extends AbstractParameter<Boolean> {
|
|||
|
||||
/**
|
||||
* Default constructors
|
||||
*
|
||||
*
|
||||
* @param id
|
||||
* @param name
|
||||
* @param value
|
||||
|
@ -56,7 +56,7 @@ public class BooleanParameter extends AbstractParameter<Boolean> {
|
|||
|
||||
/**
|
||||
* DOM Constructor
|
||||
*
|
||||
*
|
||||
* @param element
|
||||
*/
|
||||
public BooleanParameter(Element element) {
|
||||
|
@ -109,6 +109,6 @@ public class BooleanParameter extends AbstractParameter<Boolean> {
|
|||
}
|
||||
|
||||
public static Boolean parseFromString(String valueS) {
|
||||
return Boolean.valueOf(valueS);
|
||||
return StringHelper.parseBoolean(valueS);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue