cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [05/13] git commit: updated refs/heads/master to 967da97
Date Mon, 15 Jun 2015 09:06:55 GMT
Fix findbugs encoding warning Vmds files created by ESX are UTF-8 encoded

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

This closes #403


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

Branch: refs/heads/master
Commit: f5f93884d13cce577a035a3f398324485f07d26c
Parents: f8b364b
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 14 12:02:35 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:05:01 2015 +0300

----------------------------------------------------------------------
 .../src/com/cloud/hypervisor/vmware/mo/SnapshotDescriptor.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f5f93884/vmware-base/src/com/cloud/hypervisor/vmware/mo/SnapshotDescriptor.java
----------------------------------------------------------------------
diff --git a/vmware-base/src/com/cloud/hypervisor/vmware/mo/SnapshotDescriptor.java b/vmware-base/src/com/cloud/hypervisor/vmware/mo/SnapshotDescriptor.java
index 79d745e..0499be9 100644
--- a/vmware-base/src/com/cloud/hypervisor/vmware/mo/SnapshotDescriptor.java
+++ b/vmware-base/src/com/cloud/hypervisor/vmware/mo/SnapshotDescriptor.java
@@ -39,7 +39,7 @@ public class SnapshotDescriptor {
     public void parse(byte[] vmsdFileContent) throws IOException {
         BufferedReader in = null;
         try {
-            in = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(vmsdFileContent)));
+            in = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(vmsdFileContent),"UTF-8"));
             String line;
             while ((line = in.readLine()) != null) {
                 // TODO, remember to remove this log, temporarily added for debugging purpose


Mime
View raw message