cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [2/3] git commit: updated refs/heads/master to ccd7d41
Date Mon, 15 Jun 2015 09:08:05 GMT
Fix findbugs encoding warning, all .xml files contain only utf-8/us-ascii compatible characters

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


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

Branch: refs/heads/master
Commit: 9ad8c70baade7dfaf44be99b77fd7be32ab51539
Parents: 967da97
Author: Rafael da Fonseca <rsafonseca@gmail.com>
Authored: Fri Jun 12 21:39:41 2015 +0200
Committer: Rohit Yadav <rohit.yadav@shapeblue.com>
Committed: Mon Jun 15 12:07:49 2015 +0300

----------------------------------------------------------------------
 .../src/com/cloud/network/cisco/CiscoVnmcConnectionImpl.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9ad8c70b/plugins/network-elements/cisco-vnmc/src/com/cloud/network/cisco/CiscoVnmcConnectionImpl.java
----------------------------------------------------------------------
diff --git a/plugins/network-elements/cisco-vnmc/src/com/cloud/network/cisco/CiscoVnmcConnectionImpl.java
b/plugins/network-elements/cisco-vnmc/src/com/cloud/network/cisco/CiscoVnmcConnectionImpl.java
index 6481a28..eeaa610 100644
--- a/plugins/network-elements/cisco-vnmc/src/com/cloud/network/cisco/CiscoVnmcConnectionImpl.java
+++ b/plugins/network-elements/cisco-vnmc/src/com/cloud/network/cisco/CiscoVnmcConnectionImpl.java
@@ -129,7 +129,7 @@ public class CiscoVnmcConnectionImpl implements CiscoVnmcConnection {
                     throw new Exception("Failed to find Cisco VNMC XML file: " + filename);
                 }
 
-                FileReader fr = new FileReader(xmlFilePath);
+                InputStreamReader fr = new InputStreamReader(new FileInputStream(xmlFilePath),"UTF-8");
                 BufferedReader br = new BufferedReader(fr);
 
                 String xml = "";


Mime
View raw message