From b929db1f1ad8e7f96fef2dd68de9c75fe9df9320 Mon Sep 17 00:00:00 2001 From: Rafael da Fonseca Date: Mon, 22 Jun 2015 00:41:08 +0200 Subject: [PATCH] Fix findbugs DM_BOXED_PRIMITIVE_FOR_PARSING warning in ElastistorPrimaryDataStoreLifeCycle.java Signed-off-by: Daan Hoogland This closes #503 --- .../lifecycle/ElastistorPrimaryDataStoreLifeCycle.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f7e9385683b..7254c2b59ca 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 @@ -563,7 +563,7 @@ public class ElastistorPrimaryDataStoreLifeCycle implements PrimaryDataStoreLife if(updateTsmStorageCmdResponse.getStorage().getId() != null){ // update the cloudstack db - _storagePoolDao.updateCapacityBytes(storagePool.getId(), Long.valueOf(capacityBytes)); + _storagePoolDao.updateCapacityBytes(storagePool.getId(), Long.parseLong(capacityBytes)); s_logger.info("elastistor TSM storage successfully updated"); }else{