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

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

This closes #428
This commit is contained in:
Rafael da Fonseca 2015-06-14 17:19:04 +02:00 committed by Rohit Yadav
parent 6f330f7ab6
commit ea31a674a4
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}