[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:
Robert von Burg 2014-03-27 18:52:13 +01:00
parent 95117bdf88
commit c24e01cdc8
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}