mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
StringBuffer replaced with StringBuilder in ApiServlet
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
parent
843464efc8
commit
aef76f71ec
@ -435,12 +435,12 @@ public class ApiServlet extends HttpServlet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getLogoutSuccessResponse(final String responseType) {
|
private String getLogoutSuccessResponse(final String responseType) {
|
||||||
final StringBuffer sb = new StringBuffer();
|
final StringBuilder sb = new StringBuilder();
|
||||||
if (BaseCmd.RESPONSE_TYPE_JSON.equalsIgnoreCase(responseType)) {
|
if (BaseCmd.RESPONSE_TYPE_JSON.equalsIgnoreCase(responseType)) {
|
||||||
sb.append("{ \"logoutresponse\" : { \"description\" : \"success\" } }");
|
sb.append("{ \"logoutresponse\" : { \"description\" : \"success\" } }");
|
||||||
} else {
|
} else {
|
||||||
sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
|
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("<description>success</description>");
|
||||||
sb.append("</logoutresponse>");
|
sb.append("</logoutresponse>");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user