Skip to content

Commit a17852a

Browse files
rsafonsecaDaanHoogland
authored andcommitted
Fix findbugs DM_BOXED_PRIMITIVE_FOR_PARSING warning in ElastistorUtil.java
Signed-off-by: Daan Hoogland <[email protected]> This closes apache#504
1 parent 0d8c64e commit a17852a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util

plugins/storage/volume/cloudbyte/src/org/apache/cloudstack/storage/datastore/util/ElastistorUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2491,7 +2491,7 @@ public static UpdateTsmStorageCmdResponse updateElastistorTsmStorage(String capa
24912491
String quotasize = null;
24922492

24932493
if(size > 1024){
2494-
quotasize = (String.valueOf(Long.valueOf(capacityBytes)/(1024)) + "T");
2494+
quotasize = (String.valueOf(Long.parseLong(capacityBytes)/(1024)) + "T");
24952495
}else{
24962496
quotasize = String.valueOf(quotasize) + "G";
24972497
}

0 commit comments

Comments
 (0)