[JAVA] Address [rawtypes] and [this-escape] warnings in generated API clients (#20466)

* Address [rawtypes] and [this-escape] warnings in generated API clients

* Commit updated sample files
This commit is contained in:
Iurii Ignatko
2025-01-18 08:00:16 +01:00
committed by GitHub
parent 98ccf95e43
commit fa3e38a4b7
8 changed files with 18 additions and 18 deletions

View File

@@ -192,7 +192,7 @@ public class ApiClient {
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);
@@ -206,11 +206,11 @@ public class ApiClient {
return mapper;
}
protected String getDefaultBaseUri() {
private String getDefaultBaseUri() {
return "http://localhost:3000";
}
protected HttpClient.Builder createDefaultHttpClientBuilder() {
public static HttpClient.Builder createDefaultHttpClientBuilder() {
return HttpClient.newBuilder();
}