cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [08/13] git commit: updated refs/heads/master to 967da97
Date Mon, 15 Jun 2015 09:06:58 GMT
Fix 2 findbugs encoding warnings in VmwareContext.java StreamReaders should use encoding specified
in the connection object

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

This closes #405


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

Branch: refs/heads/master
Commit: f03411ca0436c8b52f5e60b0c8820fd1d1ba2ff6
Parents: 00cdd66
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Sun Jun 14 12:31:06 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:05:16 2015 +0300

----------------------------------------------------------------------
 .../src/com/cloud/hypervisor/vmware/util/VmwareContext.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/f03411ca/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java
----------------------------------------------------------------------
diff --git a/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java b/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java
index bec4b37..9992e0a 100644
--- a/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java
+++ b/vmware-base/src/com/cloud/hypervisor/vmware/util/VmwareContext.java
@@ -357,7 +357,7 @@ public class VmwareContext {
             }
             out.flush();
 
-            br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
+            br = new BufferedReader(new InputStreamReader(conn.getInputStream(),conn.getContentEncoding()));
             String line;
             while ((line = br.readLine()) != null) {
                 if (s_logger.isTraceEnabled())
@@ -483,7 +483,7 @@ public class VmwareContext {
         out.write(content);
         out.flush();
 
-        BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
+        BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream(),conn.getContentEncoding()));
         String line;
         while ((line = in.readLine()) != null) {
             if (s_logger.isTraceEnabled())


Mime
View raw message