Avoid name hiding

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1571370 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2014-02-24 17:56:52 +00:00
parent 722f5c256b
commit 56e6a6c853
1 changed files with 3 additions and 3 deletions

View File

@ -136,10 +136,10 @@ abstract class AbstractMultipartForm {
final OutputStream out, final OutputStream out,
final boolean writeContent) throws IOException { final boolean writeContent) throws IOException {
final ByteArrayBuffer boundary = encode(this.charset, getBoundary()); final ByteArrayBuffer boundaryEncoded = encode(this.charset, getBoundary());
for (final FormBodyPart part: getBodyParts()) { for (final FormBodyPart part: getBodyParts()) {
writeBytes(TWO_DASHES, out); writeBytes(TWO_DASHES, out);
writeBytes(boundary, out); writeBytes(boundaryEncoded, out);
writeBytes(CR_LF, out); writeBytes(CR_LF, out);
formatMultipartHeader(part, out); formatMultipartHeader(part, out);
@ -152,7 +152,7 @@ abstract class AbstractMultipartForm {
writeBytes(CR_LF, out); writeBytes(CR_LF, out);
} }
writeBytes(TWO_DASHES, out); writeBytes(TWO_DASHES, out);
writeBytes(boundary, out); writeBytes(boundaryEncoded, out);
writeBytes(TWO_DASHES, out); writeBytes(TWO_DASHES, out);
writeBytes(CR_LF, out); writeBytes(CR_LF, out);
} }