mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
Fix compilation of enum constructor
This commit is contained in:
parent
f979d539c7
commit
f7c6338e0c
@ -80,7 +80,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
|
||||
protected final String separator;
|
||||
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
|
||||
protected final String separator;
|
||||
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
|
||||
protected final String separator;
|
||||
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
|
||||
|
||||
protected final String separator;
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
*/
|
||||
public class ApiClient {
|
||||
|
||||
protected final WebClient webClient;
|
||||
private final WebClient webClient;
|
||||
|
||||
/**
|
||||
* @return a {@code Builder} for an {@code ApiClient}
|
||||
@ -134,7 +134,7 @@ public class ApiClient {
|
||||
return Collections.singletonList(new Pair(urlEncode(name), joiner.toString()));
|
||||
}
|
||||
|
||||
protected ApiClient(Builder builder) {
|
||||
private ApiClient(Builder builder) {
|
||||
webClient = builder.webClientBuilder().build();
|
||||
}
|
||||
|
||||
@ -147,7 +147,7 @@ public class ApiClient {
|
||||
return webClient;
|
||||
}
|
||||
|
||||
protected static String valueToString(Object value) {
|
||||
private static String valueToString(Object value) {
|
||||
if (value == null) {
|
||||
return "";
|
||||
}
|
||||
@ -167,9 +167,9 @@ public class ApiClient {
|
||||
*/
|
||||
public static class Builder {
|
||||
|
||||
protected WebClient.Builder webClientBuilder;
|
||||
protected Config clientConfig;
|
||||
protected ObjectMapper objectMapper;
|
||||
private WebClient.Builder webClientBuilder;
|
||||
private Config clientConfig;
|
||||
private ObjectMapper objectMapper;
|
||||
|
||||
public ApiClient build() {
|
||||
return new ApiClient(this);
|
||||
@ -221,7 +221,7 @@ public class ApiClient {
|
||||
return this;
|
||||
}
|
||||
|
||||
protected WebClient.Builder defaultWebClientBuilder() {
|
||||
private WebClient.Builder defaultWebClientBuilder() {
|
||||
WebClient.Builder defaultWebClientBuilder = WebClient.builder()
|
||||
.baseUri("http://petstore.swagger.io:80/v2")
|
||||
.config(clientConfig());
|
||||
@ -231,7 +231,7 @@ public class ApiClient {
|
||||
return defaultWebClientBuilder;
|
||||
}
|
||||
|
||||
protected Config clientConfig() {
|
||||
private Config clientConfig() {
|
||||
if (clientConfig == null) {
|
||||
clientConfig = Config.create().get("client");
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
*/
|
||||
public class ApiClient {
|
||||
|
||||
protected final WebClient webClient;
|
||||
private final WebClient webClient;
|
||||
|
||||
/**
|
||||
* @return a {@code Builder} for an {@code ApiClient}
|
||||
@ -135,7 +135,7 @@ public class ApiClient {
|
||||
return Collections.singletonList(new Pair(urlEncode(name), joiner.toString()));
|
||||
}
|
||||
|
||||
protected ApiClient(Builder builder) {
|
||||
private ApiClient(Builder builder) {
|
||||
webClient = builder.webClientBuilder().build();
|
||||
}
|
||||
|
||||
@ -148,7 +148,7 @@ public class ApiClient {
|
||||
return webClient;
|
||||
}
|
||||
|
||||
protected static String valueToString(Object value) {
|
||||
private static String valueToString(Object value) {
|
||||
if (value == null) {
|
||||
return "";
|
||||
}
|
||||
@ -168,9 +168,9 @@ public class ApiClient {
|
||||
*/
|
||||
public static class Builder {
|
||||
|
||||
protected WebClientConfig.Builder webClientBuilder;
|
||||
protected Config clientConfig;
|
||||
protected ObjectMapper objectMapper;
|
||||
private WebClientConfig.Builder webClientBuilder;
|
||||
private Config clientConfig;
|
||||
private ObjectMapper objectMapper;
|
||||
|
||||
public ApiClient build() {
|
||||
return new ApiClient(this);
|
||||
@ -222,7 +222,7 @@ public class ApiClient {
|
||||
return this;
|
||||
}
|
||||
|
||||
protected WebClientConfig.Builder defaultWebClientBuilder() {
|
||||
private WebClientConfig.Builder defaultWebClientBuilder() {
|
||||
WebClientConfig.Builder defaultWebClientBuilder = WebClient.builder()
|
||||
.baseUri("http://petstore.swagger.io:80/v2")
|
||||
.config(clientConfig());
|
||||
@ -232,7 +232,7 @@ public class ApiClient {
|
||||
return defaultWebClientBuilder;
|
||||
}
|
||||
|
||||
protected Config clientConfig() {
|
||||
private Config clientConfig() {
|
||||
if (clientConfig == null) {
|
||||
clientConfig = Config.create().get("client");
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
|
||||
protected final String separator;
|
||||
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
|
||||
protected final String separator;
|
||||
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
|
||||
protected final String separator;
|
||||
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
|
||||
protected final String separator;
|
||||
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
|
||||
protected final String separator;
|
||||
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
|
||||
|
||||
protected final String separator;
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
|
||||
|
||||
protected final String separator;
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
|
||||
|
||||
protected final String separator;
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
|
||||
|
||||
protected final String separator;
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
@ -86,7 +86,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
|
||||
|
||||
protected final String separator;
|
||||
protected CollectionFormat(String separator) {
|
||||
CollectionFormat(String separator) {
|
||||
this.separator = separator;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user