mirror of https://github.com/apache/cloudstack.git
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:
parent
6f330f7ab6
commit
ea31a674a4
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue