cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ko...@apache.org
Subject [3/4] git commit: updated refs/heads/master to c6d2549
Date Mon, 24 Mar 2014 20:41:47 GMT
StringBuffer replaced with StringBuilder in ApiServlet

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>


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

Branch: refs/heads/master
Commit: aef76f71ec783b40308ea312bac1b4d80c32b8d0
Parents: 843464e
Author: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Authored: Sun Mar 23 10:02:44 2014 +0100
Committer: Laszlo Hornyak <laszlo.hornyak@gmail.com>
Committed: Mon Mar 24 21:03:48 2014 +0100

----------------------------------------------------------------------
 server/src/com/cloud/api/ApiServlet.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/aef76f71/server/src/com/cloud/api/ApiServlet.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/api/ApiServlet.java b/server/src/com/cloud/api/ApiServlet.java
index f10f67a..f6dc8a7 100755
--- a/server/src/com/cloud/api/ApiServlet.java
+++ b/server/src/com/cloud/api/ApiServlet.java
@@ -435,12 +435,12 @@ public class ApiServlet extends HttpServlet {
     }
 
     private String getLogoutSuccessResponse(final String responseType) {
-        final StringBuffer sb = new StringBuffer();
+        final StringBuilder sb = new StringBuilder();
         if (BaseCmd.RESPONSE_TYPE_JSON.equalsIgnoreCase(responseType)) {
             sb.append("{ \"logoutresponse\" : { \"description\" : \"success\" } }");
         } else {
             sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
-            sb.append("<logoutresponse cloud-stack-version=\"" + ApiDBUtils.getVersion()
+ "\">");
+            sb.append("<logoutresponse cloud-stack-version=\"").append(ApiDBUtils.getVersion()).append("\">");
             sb.append("<description>success</description>");
             sb.append("</logoutresponse>");
         }


Mime
View raw message