Skip to content

Commit 1d4270d

Browse files
authored
Linting cleanup (#645)
* Fix javadoc param name * Group serializeHeaders() overloads
1 parent c4f29bc commit 1d4270d

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

google-http-client/src/main/java/com/google/api/client/http/HttpHeaders.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -893,21 +893,6 @@ static void serializeHeaders(
893893
serializeHeaders(headers, logbuf, curlbuf, logger, lowLevelHttpRequest, null);
894894
}
895895

896-
/**
897-
* Serializes headers to an {@link Writer} for Multi-part requests.
898-
*
899-
* @param headers HTTP headers
900-
* @param logbuf log buffer or {@code null} for none
901-
* @param logger logger or {@code null} for none. Logger must be specified if log buffer is
902-
* specified
903-
* @param writer Writer where HTTP headers will be serialized to or {@code null} for none
904-
* @since 1.9
905-
*/
906-
public static void serializeHeadersForMultipartRequests(
907-
HttpHeaders headers, StringBuilder logbuf, Logger logger, Writer writer) throws IOException {
908-
serializeHeaders(headers, logbuf, null, logger, null, writer);
909-
}
910-
911896
static void serializeHeaders(
912897
HttpHeaders headers,
913898
StringBuilder logbuf,
@@ -947,6 +932,21 @@ static void serializeHeaders(
947932
}
948933
}
949934

935+
/**
936+
* Serializes headers to an {@link Writer} for Multi-part requests.
937+
*
938+
* @param headers HTTP headers
939+
* @param logbuf log buffer or {@code null} for none
940+
* @param logger logger or {@code null} for none. Logger must be specified if log buffer is
941+
* specified
942+
* @param writer Writer where HTTP headers will be serialized to or {@code null} for none
943+
* @since 1.9
944+
*/
945+
public static void serializeHeadersForMultipartRequests(
946+
HttpHeaders headers, StringBuilder logbuf, Logger logger, Writer writer) throws IOException {
947+
serializeHeaders(headers, logbuf, null, logger, null, writer);
948+
}
949+
950950
/**
951951
* Puts all headers of the {@link LowLevelHttpResponse} into this {@link HttpHeaders} object.
952952
*

google-http-client/src/main/java/com/google/api/client/util/Objects.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static final class ToStringHelper {
8888
private ValueHolder holderTail = holderHead;
8989
private boolean omitNullValues;
9090

91-
/** @param wrapped wrapped object */
91+
/** @param className wrapped object */
9292
ToStringHelper(String className) {
9393
this.className = className;
9494
}

0 commit comments

Comments
 (0)