You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2013/06/05 18:57:13 UTC

svn commit: r1489957 - /sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/HtmlResponse.java

Author: cziegeler
Date: Wed Jun  5 16:57:13 2013
New Revision: 1489957

URL: http://svn.apache.org/r1489957
Log:
SLING-2907 :  HtmlResponse: replace StringBuffer with StringBuilder 

Modified:
    sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/HtmlResponse.java

Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/HtmlResponse.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/HtmlResponse.java?rev=1489957&r1=1489956&r2=1489957&view=diff
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/HtmlResponse.java (original)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/HtmlResponse.java Wed Jun  5 16:57:13 2013
@@ -33,9 +33,10 @@ import org.apache.sling.api.request.Resp
  * Generator for a HTML status response that displays the changes made in a post
  * request. see <a href="HtmlResponse.html">HtmlResponse.html</a> for the
  * format.
- * 
+ *
  * @deprecated use org.apache.sling.servlets.post.HtmlResponse instead.
  */
+@Deprecated
 public class HtmlResponse {
 
     /**
@@ -101,7 +102,7 @@ public class HtmlResponse {
     /**
      * list of changes
      */
-    private final StringBuffer changes = new StringBuffer();
+    private final StringBuilder changes = new StringBuilder();
 
     /**
      * Properties of the response
@@ -322,19 +323,19 @@ public class HtmlResponse {
      * method call, where the <code>type</code> is the method name and the
      * <code>arguments</code> are the string arguments to the method enclosed in
      * double quotes. For example, the the call
-     * 
+     *
      * <pre>
      * onChange(&quot;sameple&quot;, &quot;arg1&quot;, &quot;arg2&quot;);
      * </pre>
-     * 
+     *
      * is aded as
-     * 
+     *
      * <pre>
      * sample(&quot;arg1&quot;, &quot;arg2&quot;)
      * </pre>
-     * 
+     *
      * to the internal list of changes.
-     * 
+     *
      * @param type The type of the modification
      * @param arguments The arguments to the modifications
      */