Skip to content

Commit

Permalink
Commit updated sample files
Browse files Browse the repository at this point in the history
  • Loading branch information
welandaz committed Jan 14, 2025
1 parent 26ff514 commit 9e0b76f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ public List<Pair> parameterToPair(String name, Object value) {
* @param value The value of the parameter.
* @return A list of {@code Pair} objects.
*/
public List<Pair> parameterToPairs(String collectionFormat, String name, Collection value) {
public List<Pair> parameterToPairs(String collectionFormat, String name, Collection<?> value) {
List<Pair> params = new ArrayList<Pair>();

// preconditions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public ApiClient(HttpClient.Builder builder, ObjectMapper mapper, String baseUri
asyncResponseInterceptor = null;
}

protected ObjectMapper createDefaultObjectMapper() {
public static ObjectMapper createDefaultObjectMapper() {
ObjectMapper mapper = new ObjectMapper();
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
Expand All @@ -206,11 +206,11 @@ protected ObjectMapper createDefaultObjectMapper() {
return mapper;
}

protected String getDefaultBaseUri() {
private String getDefaultBaseUri() {
return "http://petstore.swagger.io:80/v2";
}

protected HttpClient.Builder createDefaultHttpClientBuilder() {
public static HttpClient.Builder createDefaultHttpClientBuilder() {
return HttpClient.newBuilder();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public ApiClient(HttpClient.Builder builder, ObjectMapper mapper, String baseUri
asyncResponseInterceptor = null;
}

protected ObjectMapper createDefaultObjectMapper() {
public static ObjectMapper createDefaultObjectMapper() {
ObjectMapper mapper = new ObjectMapper();
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
Expand All @@ -206,11 +206,11 @@ protected ObjectMapper createDefaultObjectMapper() {
return mapper;
}

protected String getDefaultBaseUri() {
private String getDefaultBaseUri() {
return "http://petstore.swagger.io:80/v2";
}

protected HttpClient.Builder createDefaultHttpClientBuilder() {
public static HttpClient.Builder createDefaultHttpClientBuilder() {
return HttpClient.newBuilder();
}

Expand Down

0 comments on commit 9e0b76f

Please sign in to comment.