Skip to content

Commit ea31a67

Browse files
rsafonsecayadvr
authored andcommitted
Fix findbugs warning in ElastistorPrimaryDataStoreLifeCycle.java Unnecessary boxing/unboxing of primitive value
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> This closes apache#428
1 parent 6f330f7 commit ea31a67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/lifecycle/ElastistorPrimaryDataStoreLifeCycle.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ public void updateStoragePool(StoragePool storagePool, Map<String, String> detai
555555
if(capacityBytes != null){
556556
long usedBytes = _capacityMgr.getUsedBytes(storagePoolVO);
557557

558-
if (Long.valueOf(capacityBytes) < usedBytes) {
558+
if (Long.parseLong(capacityBytes) < usedBytes) {
559559
throw new CloudRuntimeException("Cannot reduce the number of bytes for this storage pool as it would lead to an insufficient number of bytes");
560560
}
561561

0 commit comments

Comments
 (0)