[New] Allow to decode 0x values in IntegerParameter and int component props
This commit is contained in:
parent
793435454b
commit
f53b548a5d
|
@ -101,7 +101,7 @@ public abstract class AbstractionConfiguration {
|
||||||
if (StringHelper.isNotEmpty(value)) {
|
if (StringHelper.isNotEmpty(value)) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return Integer.parseInt(value);
|
return Integer.decode(value);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
String msg = "Component {0} has non-integer configuration value for {1} = {2}!"; //$NON-NLS-1$
|
String msg = "Component {0} has non-integer configuration value for {1} = {2}!"; //$NON-NLS-1$
|
||||||
msg = MessageFormat.format(msg, this.name, key, value);
|
msg = MessageFormat.format(msg, this.name, key, value);
|
||||||
|
|
|
@ -163,7 +163,7 @@ public class IntegerParameter extends AbstractParameter<Integer> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Integer parseFromString(String valueS) {
|
public static Integer parseFromString(String valueS) {
|
||||||
return Integer.valueOf(valueS);
|
return Integer.decode(valueS);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue