cloudstack-commits mailing list archives

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

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

This closes #430


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

Branch: refs/heads/master
Commit: 62e78cdea043f4e9c8e4b67060de1db3665c1522
Parents: 9511831
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 14 17:24:08 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:09:48 2015 +0300

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiDispatcher.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/62e78cde/server/src/com/cloud/api/ApiDispatcher.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiDispatcher.java b/server/src/com/cloud/api/ApiDispatcher.java
index 3447662..0dc1164 100644
--- a/server/src/com/cloud/api/ApiDispatcher.java
+++ b/server/src/com/cloud/api/ApiDispatcher.java
@@ -108,7 +108,7 @@ public class ApiDispatcher {
 
             final BaseAsyncCmd asyncCmd = (BaseAsyncCmd)cmd;
             final String startEventId = params.get(ApiConstants.CTX_START_EVENT_ID);
-            ctx.setStartEventId(Long.valueOf(startEventId));
+            ctx.setStartEventId(Long.parseLong(startEventId));
 
             // Synchronise job on the object if needed
             if (asyncCmd.getJob() != null && asyncCmd.getSyncObjId() != null &&
asyncCmd.getSyncObjType() != null) {


Mime
View raw message