cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ka...@apache.org
Subject git commit: updated refs/heads/master to 836a9ca
Date Fri, 31 Jan 2014 04:00:53 GMT
Updated Branches:
  refs/heads/master ed3e1b95b -> 836a9caa7


add charset arg to InputStreamReader constructor

thanks to findbugs.


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

Branch: refs/heads/master
Commit: 836a9caa72cbd2a5d1571a8aea6e569ba870ffde
Parents: ed3e1b9
Author: Hiroaki KAWAI <kawai@stratosphere.co.jp>
Authored: Fri Jan 31 12:57:13 2014 +0900
Committer: Hiroaki KAWAI <kawai@stratosphere.co.jp>
Committed: Fri Jan 31 12:57:13 2014 +0900

----------------------------------------------------------------------
 .../src/org/apache/cloudstack/network/element/SspClient.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/836a9caa/plugins/network-elements/stratosphere-ssp/src/org/apache/cloudstack/network/element/SspClient.java
----------------------------------------------------------------------
diff --git a/plugins/network-elements/stratosphere-ssp/src/org/apache/cloudstack/network/element/SspClient.java
b/plugins/network-elements/stratosphere-ssp/src/org/apache/cloudstack/network/element/SspClient.java
index c0db92c..4d0be2d 100644
--- a/plugins/network-elements/stratosphere-ssp/src/org/apache/cloudstack/network/element/SspClient.java
+++ b/plugins/network-elements/stratosphere-ssp/src/org/apache/cloudstack/network/element/SspClient.java
@@ -139,7 +139,7 @@ public class SspClient {
             return null;
         }
         try {
-            return new Gson().fromJson(new InputStreamReader(res.getEntity().getContent()),
+            return new Gson().fromJson(new InputStreamReader(res.getEntity().getContent(),
"UTF-8"),
                     TenantNetwork.class);
         } catch (JsonSyntaxException e) {
             s_logger.error("reading response body failed", e);
@@ -188,7 +188,7 @@ public class SspClient {
             return null;
         }
         try {
-            return new Gson().fromJson(new InputStreamReader(res.getEntity().getContent()),
+            return new Gson().fromJson(new InputStreamReader(res.getEntity().getContent(),
"UTF-8"),
                     TenantPort.class);
         } catch (JsonSyntaxException e) {
             s_logger.error("reading response body failed", e);
@@ -228,7 +228,7 @@ public class SspClient {
             return null;
         }
         try {
-            return new Gson().fromJson(new InputStreamReader(res.getEntity().getContent()),
+            return new Gson().fromJson(new InputStreamReader(res.getEntity().getContent(),
"UTF-8"),
                     TenantPort.class);
         } catch (JsonSyntaxException e) {
             s_logger.error("reading response body failed", e);


Mime
View raw message