Fix compilation of enum constructor

This commit is contained in:
AB 2025-05-09 13:59:10 +02:00
parent f979d539c7
commit f7c6338e0c
No known key found for this signature in database
GPG Key ID: D5BCEF380182CD94
16 changed files with 30 additions and 30 deletions

View File

@ -80,7 +80,7 @@ public class ApiClient extends JavaTimeFormatter {
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -78,7 +78,7 @@ public class ApiClient extends JavaTimeFormatter {
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -78,7 +78,7 @@ public class ApiClient extends JavaTimeFormatter {
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -85,7 +85,7 @@ public class ApiClient extends JavaTimeFormatter {
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null); CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -41,7 +41,7 @@ import static java.nio.charset.StandardCharsets.UTF_8;
*/ */
public class ApiClient { public class ApiClient {
protected final WebClient webClient; private final WebClient webClient;
/** /**
* @return a {@code Builder} for an {@code ApiClient} * @return a {@code Builder} for an {@code ApiClient}
@ -134,7 +134,7 @@ public class ApiClient {
return Collections.singletonList(new Pair(urlEncode(name), joiner.toString())); return Collections.singletonList(new Pair(urlEncode(name), joiner.toString()));
} }
protected ApiClient(Builder builder) { private ApiClient(Builder builder) {
webClient = builder.webClientBuilder().build(); webClient = builder.webClientBuilder().build();
} }
@ -147,7 +147,7 @@ public class ApiClient {
return webClient; return webClient;
} }
protected static String valueToString(Object value) { private static String valueToString(Object value) {
if (value == null) { if (value == null) {
return ""; return "";
} }
@ -167,9 +167,9 @@ public class ApiClient {
*/ */
public static class Builder { public static class Builder {
protected WebClient.Builder webClientBuilder; private WebClient.Builder webClientBuilder;
protected Config clientConfig; private Config clientConfig;
protected ObjectMapper objectMapper; private ObjectMapper objectMapper;
public ApiClient build() { public ApiClient build() {
return new ApiClient(this); return new ApiClient(this);
@ -221,7 +221,7 @@ public class ApiClient {
return this; return this;
} }
protected WebClient.Builder defaultWebClientBuilder() { private WebClient.Builder defaultWebClientBuilder() {
WebClient.Builder defaultWebClientBuilder = WebClient.builder() WebClient.Builder defaultWebClientBuilder = WebClient.builder()
.baseUri("http://petstore.swagger.io:80/v2") .baseUri("http://petstore.swagger.io:80/v2")
.config(clientConfig()); .config(clientConfig());
@ -231,7 +231,7 @@ public class ApiClient {
return defaultWebClientBuilder; return defaultWebClientBuilder;
} }
protected Config clientConfig() { private Config clientConfig() {
if (clientConfig == null) { if (clientConfig == null) {
clientConfig = Config.create().get("client"); clientConfig = Config.create().get("client");
} }

View File

@ -42,7 +42,7 @@ import static java.nio.charset.StandardCharsets.UTF_8;
*/ */
public class ApiClient { public class ApiClient {
protected final WebClient webClient; private final WebClient webClient;
/** /**
* @return a {@code Builder} for an {@code ApiClient} * @return a {@code Builder} for an {@code ApiClient}
@ -135,7 +135,7 @@ public class ApiClient {
return Collections.singletonList(new Pair(urlEncode(name), joiner.toString())); return Collections.singletonList(new Pair(urlEncode(name), joiner.toString()));
} }
protected ApiClient(Builder builder) { private ApiClient(Builder builder) {
webClient = builder.webClientBuilder().build(); webClient = builder.webClientBuilder().build();
} }
@ -148,7 +148,7 @@ public class ApiClient {
return webClient; return webClient;
} }
protected static String valueToString(Object value) { private static String valueToString(Object value) {
if (value == null) { if (value == null) {
return ""; return "";
} }
@ -168,9 +168,9 @@ public class ApiClient {
*/ */
public static class Builder { public static class Builder {
protected WebClientConfig.Builder webClientBuilder; private WebClientConfig.Builder webClientBuilder;
protected Config clientConfig; private Config clientConfig;
protected ObjectMapper objectMapper; private ObjectMapper objectMapper;
public ApiClient build() { public ApiClient build() {
return new ApiClient(this); return new ApiClient(this);
@ -222,7 +222,7 @@ public class ApiClient {
return this; return this;
} }
protected WebClientConfig.Builder defaultWebClientBuilder() { private WebClientConfig.Builder defaultWebClientBuilder() {
WebClientConfig.Builder defaultWebClientBuilder = WebClient.builder() WebClientConfig.Builder defaultWebClientBuilder = WebClient.builder()
.baseUri("http://petstore.swagger.io:80/v2") .baseUri("http://petstore.swagger.io:80/v2")
.config(clientConfig()); .config(clientConfig());
@ -232,7 +232,7 @@ public class ApiClient {
return defaultWebClientBuilder; return defaultWebClientBuilder;
} }
protected Config clientConfig() { private Config clientConfig() {
if (clientConfig == null) { if (clientConfig == null) {
clientConfig = Config.create().get("client"); clientConfig = Config.create().get("client");
} }

View File

@ -80,7 +80,7 @@ public class ApiClient extends JavaTimeFormatter {
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -80,7 +80,7 @@ public class ApiClient extends JavaTimeFormatter {
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -80,7 +80,7 @@ public class ApiClient extends JavaTimeFormatter {
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -87,7 +87,7 @@ public class ApiClient extends JavaTimeFormatter {
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -82,7 +82,7 @@ public class ApiClient extends JavaTimeFormatter {
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -86,7 +86,7 @@ public class ApiClient extends JavaTimeFormatter {
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null); CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -85,7 +85,7 @@ public class ApiClient extends JavaTimeFormatter {
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null); CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -86,7 +86,7 @@ public class ApiClient extends JavaTimeFormatter {
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null); CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -86,7 +86,7 @@ public class ApiClient extends JavaTimeFormatter {
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null); CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }

View File

@ -86,7 +86,7 @@ public class ApiClient extends JavaTimeFormatter {
CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null); CSV(","), TSV("\t"), SSV(" "), PIPES("|"), MULTI(null);
protected final String separator; protected final String separator;
protected CollectionFormat(String separator) { CollectionFormat(String separator) {
this.separator = separator; this.separator = separator;
} }