Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Linting cleanup (#645)
* Fix javadoc param name

* Group serializeHeaders() overloads
  • Loading branch information
chingor13 authored May 26, 2019
commit 1d4270dc2971d52780359d9e3411dd761696c4e6
Original file line number Diff line number Diff line change
Expand Up @@ -893,21 +893,6 @@ static void serializeHeaders(
serializeHeaders(headers, logbuf, curlbuf, logger, lowLevelHttpRequest, null);
}

/**
* Serializes headers to an {@link Writer} for Multi-part requests.
*
* @param headers HTTP headers
* @param logbuf log buffer or {@code null} for none
* @param logger logger or {@code null} for none. Logger must be specified if log buffer is
* specified
* @param writer Writer where HTTP headers will be serialized to or {@code null} for none
* @since 1.9
*/
public static void serializeHeadersForMultipartRequests(
HttpHeaders headers, StringBuilder logbuf, Logger logger, Writer writer) throws IOException {
serializeHeaders(headers, logbuf, null, logger, null, writer);
}

static void serializeHeaders(
HttpHeaders headers,
StringBuilder logbuf,
Expand Down Expand Up @@ -947,6 +932,21 @@ static void serializeHeaders(
}
}

/**
* Serializes headers to an {@link Writer} for Multi-part requests.
*
* @param headers HTTP headers
* @param logbuf log buffer or {@code null} for none
* @param logger logger or {@code null} for none. Logger must be specified if log buffer is
* specified
* @param writer Writer where HTTP headers will be serialized to or {@code null} for none
* @since 1.9
*/
public static void serializeHeadersForMultipartRequests(
HttpHeaders headers, StringBuilder logbuf, Logger logger, Writer writer) throws IOException {
serializeHeaders(headers, logbuf, null, logger, null, writer);
}

/**
* Puts all headers of the {@link LowLevelHttpResponse} into this {@link HttpHeaders} object.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static final class ToStringHelper {
private ValueHolder holderTail = holderHead;
private boolean omitNullValues;

/** @param wrapped wrapped object */
/** @param className wrapped object */
ToStringHelper(String className) {
this.className = className;
}
Expand Down