mirror of https://github.com/apache/cloudstack.git
Fix findbugs warning in Script.java Unnecessary boxing/unboxing of int value
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> This closes #436
This commit is contained in:
parent
14f761a976
commit
a4659d009e
|
|
@ -492,7 +492,7 @@ public class Script implements Callable<String> {
|
|||
return -1;
|
||||
else {
|
||||
try {
|
||||
return Integer.valueOf(result.trim());
|
||||
return Integer.parseInt(result.trim());
|
||||
} catch (NumberFormatException e) {
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue