hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r823859 - in /httpcomponents/httpclient/trunk: httpclient/src/main/java/org/apache/http/auth/ httpclient/src/main/java/org/apache/http/client/utils/ httpclient/src/main/java/org/apache/http/conn/ssl/ httpclient/src/test/java/org/apache/http...
Date Sat, 10 Oct 2009 14:17:59 GMT
Author: sebb
Date: Sat Oct 10 14:17:58 2009
New Revision: 823859

URL: http://svn.apache.org/viewvc?rev=823859&view=rev
Log:
Fix remaining StringBuffer => StringBuilder

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthScope.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/Rfc3492Idn.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIUtils.java
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractVerifier.java
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/auth/TestBasicScheme.java
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java
    httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartForm.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthScope.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthScope.java?rev=823859&r1=823858&r2=823859&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthScope.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/auth/AuthScope.java
Sat Oct 10 14:17:58 2009
@@ -251,7 +251,7 @@
      */
     @Override
     public String toString() {
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         if (this.scheme != null) {
             buffer.append(this.scheme.toUpperCase(Locale.ENGLISH));
             buffer.append(' ');

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/Rfc3492Idn.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/Rfc3492Idn.java?rev=823859&r1=823858&r2=823859&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/Rfc3492Idn.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/Rfc3492Idn.java
Sat Oct 10 14:17:58 2009
@@ -71,7 +71,7 @@
     }
 
     public String toUnicode(String punycode) {
-        StringBuffer unicode = new StringBuffer(punycode.length());
+        StringBuilder unicode = new StringBuilder(punycode.length());
         StringTokenizer tok = new StringTokenizer(punycode, ".");
         while (tok.hasMoreTokens()) {
             String t = tok.nextToken();
@@ -86,7 +86,7 @@
         int n = initial_n;
         int i = 0;
         int bias = initial_bias;
-        StringBuffer output = new StringBuffer(input.length());
+        StringBuilder output = new StringBuilder(input.length());
         int lastdelim = input.lastIndexOf(delimiter);
         if (lastdelim != -1) {
             output.append(input.subSequence(0, lastdelim));

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIUtils.java?rev=823859&r1=823858&r2=823859&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIUtils.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIUtils.java
Sat Oct 10 14:17:58 2009
@@ -244,7 +244,7 @@
                 outputSegments.push(inputSegments[i]);
             }
         }
-        StringBuffer outputBuffer = new StringBuffer();
+        StringBuilder outputBuffer = new StringBuilder();
         for (String outputSegment : outputSegments) {
             outputBuffer.append('/').append(outputSegment);
         }

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractVerifier.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractVerifier.java?rev=823859&r1=823858&r2=823859&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractVerifier.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/AbstractVerifier.java
Sat Oct 10 14:17:58 2009
@@ -175,8 +175,8 @@
             throw new SSLException(msg);
         }
 
-        // StringBuffer for building the error message.
-        StringBuffer buf = new StringBuffer();
+        // StringBuilder for building the error message.
+        StringBuilder buf = new StringBuilder();
 
         // We're can be case-insensitive when comparing the host we used to
         // establish the socket to the hostname in the certificate.
@@ -186,7 +186,7 @@
             // Don't trim the CN, though!
             String cn = it.next();
             cn = cn.toLowerCase(Locale.ENGLISH);
-            // Store CN in StringBuffer in case we need to report an error.
+            // Store CN in StringBuilder in case we need to report an error.
             buf.append(" <");
             buf.append(cn);
             buf.append('>');

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/auth/TestBasicScheme.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/auth/TestBasicScheme.java?rev=823859&r1=823858&r2=823859&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/auth/TestBasicScheme.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/impl/auth/TestBasicScheme.java
Sat Oct 10 14:17:58 2009
@@ -80,7 +80,7 @@
 
     public void testBasicAuthenticationWith88591Chars() throws Exception {
         int[] germanChars = { 0xE4, 0x2D, 0xF6, 0x2D, 0xFc };
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         for (int i = 0; i < germanChars.length; i++) {
             buffer.append((char)germanChars[i]); 
         }

Modified: httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java?rev=823859&r1=823858&r2=823859&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/localserver/LocalTestServer.java
Sat Oct 10 14:17:58 2009
@@ -299,7 +299,7 @@
     @Override
     public String toString() {
         ServerSocket ssock = servicedSocket; // avoid synchronization
-        StringBuffer sb = new StringBuffer(80);
+        StringBuilder sb = new StringBuilder(80);
         sb.append("LocalTestServer/");
         if (ssock == null)
             sb.append("stopped");

Modified: httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartForm.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartForm.java?rev=823859&r1=823858&r2=823859&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartForm.java
(original)
+++ httpcomponents/httpclient/trunk/httpmime/src/test/java/org/apache/http/entity/mime/TestMultipartForm.java
Sat Oct 10 14:17:58 2009
@@ -303,7 +303,7 @@
     }; 
     
     private static String constructString(int [] unicodeChars) {
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         if (unicodeChars != null) {
             for (int i = 0; i < unicodeChars.length; i++) {
                 buffer.append((char)unicodeChars[i]); 



Mime
View raw message