cloudstack-commits mailing list archives

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

Signed-off-by: Rohit Yadav <rohit.yadav@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 <rsafonseca@gmail.com>
Authored: Sun Jun 14 17:19:04 2015 +0200
Committer: Rohit Yadav <rohit.yadav@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");
                     }
 


Mime
View raw message