Skip to content

Commit 3650f12

Browse files
K0zkaDaan Hoogland
authored andcommitted
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>
1 parent 8895405 commit 3650f12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6862,7 +6862,7 @@ private VM createWorkingVM(Connection conn, String vmName,
68626862
vbdr.bootable = false;
68636863
vbdr.unpluggable = true;
68646864
}
6865-
vbdr.userdevice = new Long(volumeTO.getDeviceId()).toString();
6865+
vbdr.userdevice = Long.toString(volumeTO.getDeviceId());
68666866
vbdr.mode = Types.VbdMode.RW;
68676867
vbdr.type = Types.VbdType.DISK;
68686868
VBD.create(conn, vbdr);

0 commit comments

Comments
 (0)