Fix 2 findbugs warnings in ElastistorUtil.java Unnecessary boxing/unboxing of long value

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

This closes #429
This commit is contained in:
Rafael da Fonseca 2015-06-14 17:22:18 +02:00 committed by Rohit Yadav
parent ea31a674a4
commit 9511831f0a
1 changed files with 2 additions and 2 deletions

View File

@ -2486,7 +2486,7 @@ public class ElastistorUtil {
// update the TSM storage
public static UpdateTsmStorageCmdResponse updateElastistorTsmStorage(String capacityBytes,String uuid) throws Throwable{
Long size = (Long.valueOf(capacityBytes)/(1024 * 1024 * 1024));
Long size = (Long.parseLong(capacityBytes)/(1024 * 1024 * 1024));
String quotasize = null;
@ -2564,7 +2564,7 @@ public class ElastistorUtil {
s_logger.info("elastistor tsm IOPS is updating to " + capacityIOPs);
UpdateTsmCmd updateTsmCmd = new UpdateTsmCmd();
String throughput = String.valueOf(Long.valueOf(capacityIOPs)*4);
String throughput = String.valueOf(Long.parseLong(capacityIOPs)*4);
updateTsmCmd.putCommandParameter("id", uuid);
updateTsmCmd.putCommandParameter("iops", capacityIOPs);