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:55 UTC

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

Fix 2 findbugs warnings in ElastistorUtil.java Unnecessary boxing/unboxing of long value

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

This closes #429


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

Branch: refs/heads/master
Commit: 9511831f0a3f8dd30e05f093e6a5f29aa6ae5bfd
Parents: ea31a67
Author: Rafael da Fonseca <rs...@gmail.com>
Authored: Sun Jun 14 17:22:18 2015 +0200
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Mon Jun 15 12:09:47 2015 +0300

----------------------------------------------------------------------
 .../apache/cloudstack/storage/datastore/util/ElastistorUtil.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9511831f/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java
----------------------------------------------------------------------
diff --git a/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java b/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java
index 861c180..35c51d8 100644
--- a/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java
+++ b/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java
@@ -2486,7 +2486,7 @@ public class ElastistorUtil {
      // update the TSM storage
      public static UpdateTsmStorageCmdResponse updateElastistorTsmStorage(String capacityBytes,String uuid) throws Throwable{
 
-         Long size = (Long.valueOf(capacityBytes)/(1024 * 1024 * 1024));
+         Long size = (Long.parseLong(capacityBytes)/(1024 * 1024 * 1024));
 
          String quotasize = null;
 
@@ -2564,7 +2564,7 @@ public class ElastistorUtil {
 
          s_logger.info("elastistor tsm IOPS is updating to " + capacityIOPs);
          UpdateTsmCmd updateTsmCmd = new UpdateTsmCmd();
-         String throughput = String.valueOf(Long.valueOf(capacityIOPs)*4);
+         String throughput = String.valueOf(Long.parseLong(capacityIOPs)*4);
 
          updateTsmCmd.putCommandParameter("id", uuid);
          updateTsmCmd.putCommandParameter("iops", capacityIOPs);