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

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

Fix findbugs warning in ElastistorPrimaryDataStoreLifeCycle.java Unnecessary boxing/unboxing of primitive value

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

This closes #428


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

Branch: refs/heads/master
Commit: ea31a674a45fde39b44a5d344a57422a607d08ac
Parents: 6f330f7
Author: Rafael da Fonseca <rs...@gmail.com>
Authored: Sun Jun 14 17:19:04 2015 +0200
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Mon Jun 15 12:09:45 2015 +0300

----------------------------------------------------------------------
 .../datastore/lifecycle/ElastistorPrimaryDataStoreLifeCycle.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ea31a674/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/lifecycle/ElastistorPrimaryDataStoreLifeCycle.java
----------------------------------------------------------------------
diff --git a/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/lifecycle/ElastistorPrimaryDataStoreLifeCycle.java b/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/lifecycle/ElastistorPrimaryDataStoreLifeCycle.java
index 5a8ccf1..f7e9385 100644
--- a/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/lifecycle/ElastistorPrimaryDataStoreLifeCycle.java
+++ b/plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/lifecycle/ElastistorPrimaryDataStoreLifeCycle.java
@@ -555,7 +555,7 @@ public class ElastistorPrimaryDataStoreLifeCycle implements PrimaryDataStoreLife
                 if(capacityBytes != null){
                     long usedBytes = _capacityMgr.getUsedBytes(storagePoolVO);
 
-                    if (Long.valueOf(capacityBytes) < usedBytes) {
+                    if (Long.parseLong(capacityBytes) < usedBytes) {
                         throw new CloudRuntimeException("Cannot reduce the number of bytes for this storage pool as it would lead to an insufficient number of bytes");
                     }