cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/master to 3650f12
Date Thu, 19 Sep 2013 15:18:17 GMT
Updated Branches:
  refs/heads/master 88954053c -> 3650f12e9


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>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3650f12e
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3650f12e
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3650f12e

Branch: refs/heads/master
Commit: 3650f12e9b284d16f28131ba6cafecacb2d03fdc
Parents: 8895405
Author: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Authored: Mon Sep 16 18:35:49 2013 +0200
Committer: Daan Hoogland <dhoogland@schubergphilis.com>
Committed: Thu Sep 19 17:17:54 2013 +0200

----------------------------------------------------------------------
 .../src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3650f12e/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
index 76016c7..6b81c25 100644
--- a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
+++ b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java
@@ -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);


Mime
View raw message