cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [29/34] git commit: updated refs/heads/master to 7a57ce3
Date Mon, 15 Jun 2015 09:15:02 GMT
Fix findbugs warning in Script.java Unnecessary boxing/unboxing of int value

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #436


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a4659d00
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a4659d00
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a4659d00

Branch: refs/heads/master
Commit: a4659d009e2933c511189384b1a6b039cd3ea3ce
Parents: 14f761a
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 14 17:38:14 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:10:00 2015 +0300

----------------------------------------------------------------------
 utils/src/com/cloud/utils/script/Script.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a4659d00/utils/src/com/cloud/utils/script/Script.java
----------------------------------------------------------------------
diff --git a/utils/src/com/cloud/utils/script/Script.java b/utils/src/com/cloud/utils/script/Script.java
index 014432e..487c62c 100644
--- a/utils/src/com/cloud/utils/script/Script.java
+++ b/utils/src/com/cloud/utils/script/Script.java
@@ -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;
             }


Mime
View raw message