hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1571370 - /httpcomponents/httpclient/trunk/httpmime/src/main/java/org/apache/http/entity/mime/AbstractMultipartForm.java
Date Mon, 24 Feb 2014 17:56:53 GMT
Author: sebb
Date: Mon Feb 24 17:56:52 2014
New Revision: 1571370

URL: http://svn.apache.org/r1571370
Log:
Avoid name hiding

Modified:
    httpcomponents/httpclient/trunk/httpmime/src/main/java/org/apache/http/entity/mime/AbstractMultipartForm.java

Modified: httpcomponents/httpclient/trunk/httpmime/src/main/java/org/apache/http/entity/mime/AbstractMultipartForm.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpmime/src/main/java/org/apache/http/entity/mime/AbstractMultipartForm.java?rev=1571370&r1=1571369&r2=1571370&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpmime/src/main/java/org/apache/http/entity/mime/AbstractMultipartForm.java
(original)
+++ httpcomponents/httpclient/trunk/httpmime/src/main/java/org/apache/http/entity/mime/AbstractMultipartForm.java
Mon Feb 24 17:56:52 2014
@@ -136,10 +136,10 @@ abstract class AbstractMultipartForm {
         final OutputStream out,
         final boolean writeContent) throws IOException {
 
-        final ByteArrayBuffer boundary = encode(this.charset, getBoundary());
+        final ByteArrayBuffer boundaryEncoded = encode(this.charset, getBoundary());
         for (final FormBodyPart part: getBodyParts()) {
             writeBytes(TWO_DASHES, out);
-            writeBytes(boundary, out);
+            writeBytes(boundaryEncoded, out);
             writeBytes(CR_LF, out);
 
             formatMultipartHeader(part, out);
@@ -152,7 +152,7 @@ abstract class AbstractMultipartForm {
             writeBytes(CR_LF, out);
         }
         writeBytes(TWO_DASHES, out);
-        writeBytes(boundary, out);
+        writeBytes(boundaryEncoded, out);
         writeBytes(TWO_DASHES, out);
         writeBytes(CR_LF, out);
     }



Mime
View raw message