Change Integer.valueOf(..) call to Integer.parseInt(..).

This commit is contained in:
John Blum
2020-05-18 00:01:04 -07:00
parent d84b2d77dc
commit 11222e249d

View File

@@ -72,7 +72,7 @@ public class CalculatorConfiguration {
return (target, method, arguments) -> {
int operand = Integer.valueOf(String.valueOf(arguments[0]));
int operand = Integer.parseInt(String.valueOf(arguments[0]));
Operator operator = "sqrt".equals(method.getName())
? Operator.SQUARE_ROOT