Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

fix: prevent unchecked warnings in gax-httpjson [gax-java] #1306

Merged
merged 2 commits into from Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -75,6 +75,7 @@ ApiMessageHttpRequestFormatter.Builder<RequestT> newBuilder() {
return new ApiMessageHttpRequestFormatter.Builder<>();
}

@SuppressWarnings("unchecked")
@Override
public Map<String, List<String>> getQueryParamNames(RequestT apiMessage) {
Set<String> paramNames = getQueryParamNames();
Expand Down
Expand Up @@ -50,7 +50,7 @@ public abstract class ApiMethodDescriptor<RequestT, ResponseT> {
public abstract String getHttpMethod();

public static <RequestT, ResponseT> Builder<RequestT, ResponseT> newBuilder() {
return new AutoValue_ApiMethodDescriptor.Builder();
return new AutoValue_ApiMethodDescriptor.Builder<RequestT, ResponseT>();
}

@AutoValue.Builder
Expand Down