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 bff8a8e
Date Wed, 25 Mar 2015 17:22:04 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 7b51fda3b -> bff8a8e9c


findbugs: set explicit default charset

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

Branch: refs/heads/master
Commit: bff8a8e9cd4161dca841f0f7aaa3622045bb368e
Parents: 7b51fda
Author: Daan Hoogland <dhoogland@schubergphilis.com>
Authored: Wed Mar 25 18:22:07 2015 +0100
Committer: Daan Hoogland <dhoogland@schubergphilis.com>
Committed: Wed Mar 25 18:22:07 2015 +0100

----------------------------------------------------------------------
 .../main/java/com/cloud/hypervisor/ovm3/objects/OvmObject.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/bff8a8e9/plugins/hypervisors/ovm3/src/main/java/com/cloud/hypervisor/ovm3/objects/OvmObject.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/ovm3/src/main/java/com/cloud/hypervisor/ovm3/objects/OvmObject.java
b/plugins/hypervisors/ovm3/src/main/java/com/cloud/hypervisor/ovm3/objects/OvmObject.java
index 8d220c7..cfe249e 100644
--- a/plugins/hypervisors/ovm3/src/main/java/com/cloud/hypervisor/ovm3/objects/OvmObject.java
+++ b/plugins/hypervisors/ovm3/src/main/java/com/cloud/hypervisor/ovm3/objects/OvmObject.java
@@ -19,6 +19,7 @@ package com.cloud.hypervisor.ovm3.objects;
 
 import java.io.IOException;
 import java.io.StringReader;
+import java.nio.charset.Charset;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
@@ -70,7 +71,7 @@ public class OvmObject {
 
     /* generate a uuid */
     public String newUuid(String str) {
-        return UUID.nameUUIDFromBytes(str.getBytes()).toString();
+        return UUID.nameUUIDFromBytes(str.getBytes(Charset.defaultCharset())).toString();
     }
 
     /* capture most of the calls here */


Mime
View raw message