fix #8755 [BUG] Java (jersey2) ApiClient debug cannot be enabled (#8756)

* fix #8755 [BUG] Java (jersey2) ApiClient debug cannot be enabled

* fix #8755 updating samples
This commit is contained in:
tomred-net 2021-03-27 15:01:39 +13:00 committed by GitHub
parent 2525639875
commit 38b49e77af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 24 deletions

View File

@ -1229,10 +1229,8 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} {
* @return Client
*/
protected Client buildHttpClient() {
// use the default client config if not yet initialized
if (clientConfig == null) {
// recreate the client config to pickup changes
clientConfig = getDefaultClientConfig();
}
ClientBuilder clientBuilder = ClientBuilder.newBuilder();
customizeClientBuilder(clientBuilder);

View File

@ -1143,10 +1143,8 @@ public class ApiClient extends JavaTimeFormatter {
* @return Client
*/
protected Client buildHttpClient() {
// use the default client config if not yet initialized
if (clientConfig == null) {
// recreate the client config to pickup changes
clientConfig = getDefaultClientConfig();
}
ClientBuilder clientBuilder = ClientBuilder.newBuilder();
customizeClientBuilder(clientBuilder);

View File

@ -1143,10 +1143,8 @@ public class ApiClient extends JavaTimeFormatter {
* @return Client
*/
protected Client buildHttpClient() {
// use the default client config if not yet initialized
if (clientConfig == null) {
// recreate the client config to pickup changes
clientConfig = getDefaultClientConfig();
}
ClientBuilder clientBuilder = ClientBuilder.newBuilder();
customizeClientBuilder(clientBuilder);

View File

@ -1063,10 +1063,8 @@ public class ApiClient extends JavaTimeFormatter {
* @return Client
*/
protected Client buildHttpClient() {
// use the default client config if not yet initialized
if (clientConfig == null) {
// recreate the client config to pickup changes
clientConfig = getDefaultClientConfig();
}
ClientBuilder clientBuilder = ClientBuilder.newBuilder();
customizeClientBuilder(clientBuilder);

View File

@ -1008,10 +1008,8 @@ public class ApiClient extends JavaTimeFormatter {
* @return Client
*/
protected Client buildHttpClient() {
// use the default client config if not yet initialized
if (clientConfig == null) {
// recreate the client config to pickup changes
clientConfig = getDefaultClientConfig();
}
ClientBuilder clientBuilder = ClientBuilder.newBuilder();
customizeClientBuilder(clientBuilder);

View File

@ -1227,10 +1227,8 @@ public class ApiClient extends JavaTimeFormatter {
* @return Client
*/
protected Client buildHttpClient() {
// use the default client config if not yet initialized
if (clientConfig == null) {
// recreate the client config to pickup changes
clientConfig = getDefaultClientConfig();
}
ClientBuilder clientBuilder = ClientBuilder.newBuilder();
customizeClientBuilder(clientBuilder);