Avoid primitive wrapper constructors

This commit is contained in:
Andrew Gaul 2014-08-26 17:53:50 -07:00
parent bb0b816a91
commit 1f44b9d822
1 changed files with 1 additions and 1 deletions

View File

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