hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1239123 - /httpcomponents/httpcore/trunk/src/docbkx/fundamentals.xml
Date Wed, 01 Feb 2012 13:32:26 GMT
Author: olegk
Date: Wed Feb  1 13:32:26 2012
New Revision: 1239123

URL: http://svn.apache.org/viewvc?rev=1239123&view=rev
Log:
HTTPCORE-292: Refer to StringBuilder instead of StringBuffer in HttpCore tutorial
Contributed by Karthik K <oss.akk at gmail.com>

Modified:
    httpcomponents/httpcore/trunk/src/docbkx/fundamentals.xml

Modified: httpcomponents/httpcore/trunk/src/docbkx/fundamentals.xml
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/src/docbkx/fundamentals.xml?rev=1239123&r1=1239122&r2=1239123&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/src/docbkx/fundamentals.xml (original)
+++ httpcomponents/httpcore/trunk/src/docbkx/fundamentals.xml Wed Feb  1 13:32:26 2012
@@ -445,7 +445,7 @@ ByteArrayEntity myEntity = new ByteArray
                 string; the third allows the mime type to be specified.
                 </para>
                 <programlisting><![CDATA[
-StringBuffer sb = new StringBuffer();
+StringBuilder sb = new StringBuilder();
 Map<String, String> env = System.getenv();
 for (Entry<String, String> envEntry : env.entrySet()) {
     sb.append(envEntry.getKey()).append(": ")



Mime
View raw message