Do not instantiate long just to generate String

Replaced toString call to the static toString method

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
Laszlo Hornyak 2013-09-16 18:35:49 +02:00 committed by Daan Hoogland
parent 88954053c3
commit 3650f12e9b

View File

@ -6862,7 +6862,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
vbdr.bootable = false;
vbdr.unpluggable = true;
}
vbdr.userdevice = new Long(volumeTO.getDeviceId()).toString();
vbdr.userdevice = Long.toString(volumeTO.getDeviceId());
vbdr.mode = Types.VbdMode.RW;
vbdr.type = Types.VbdType.DISK;
VBD.create(conn, vbdr);