[New] Allow to decode 0x values in IntegerParameter and int component props

This commit is contained in:
Robert von Burg 2019-12-11 18:30:36 +01:00
parent 793435454b
commit f53b548a5d
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ public abstract class AbstractionConfiguration {
if (StringHelper.isNotEmpty(value)) {
try {
return Integer.parseInt(value);
return Integer.decode(value);
} catch (NumberFormatException e) {
String msg = "Component {0} has non-integer configuration value for {1} = {2}!"; //$NON-NLS-1$
msg = MessageFormat.format(msg, this.name, key, value);

View File

@ -163,7 +163,7 @@ public class IntegerParameter extends AbstractParameter<Integer> {
}
public static Integer parseFromString(String valueS) {
return Integer.valueOf(valueS);
return Integer.decode(valueS);
}
@Override