mirror of https://github.com/apache/jclouds.git
Avoid primitive wrapper constructors
This commit is contained in:
parent
bb0b816a91
commit
1f44b9d822
|
@ -91,7 +91,7 @@ public class MachineTypeInZoneToHardware implements Function<MachineTypeInZone,
|
|||
for (MachineType.ScratchDisk disk : input.getScratchDisks()) {
|
||||
volumes.add(new VolumeBuilder()
|
||||
.type(Volume.Type.LOCAL)
|
||||
.size(new Integer(disk.getDiskGb()).floatValue())
|
||||
.size(Integer.valueOf(disk.getDiskGb()).floatValue())
|
||||
.bootDevice(true)
|
||||
.durable(false).build());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue