You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2015/06/15 11:14:56 UTC

[23/34] git commit: updated refs/heads/master to 7a57ce3

Fix findbugs warning in ApiDispatcher.java Unnecessary boxing/unboxing of long value

Signed-off-by: Rohit Yadav <ro...@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 <rs...@gmail.com>
Authored: Sun Jun 14 17:24:08 2015 +0200
Committer: Rohit Yadav <ro...@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) {