Cloud Non production pipeline error | Community
Skip to main content
JakeCham
Level 6
January 2, 2024
Solved

Cloud Non production pipeline error

  • January 2, 2024
  • 3 replies
  • 773 views

The code quality step for the Non-production pipeline threw the following error.

 

 

what is the correct code snippet to replace the above code.

 

a.

b.

c.

d.

 

Thanks in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mahedi_Sabuj

Option B

public void test() { HttpClientBuilder builder = httpClientBuilderFactory.newBuilder(); RequestConfig requestConfig = RequestConfig.custom() .setConnectTimeout(5000) .setSocketTimeout(5000) .build(); builder.setDefaultRequestConfig(requestConfig); HttpClient httpClient = builder.build(); // do something with the client }

3 replies

Mahedi_Sabuj
Community Advisor
Mahedi_SabujCommunity AdvisorAccepted solution
Community Advisor
January 2, 2024

Option B

public void test() { HttpClientBuilder builder = httpClientBuilderFactory.newBuilder(); RequestConfig requestConfig = RequestConfig.custom() .setConnectTimeout(5000) .setSocketTimeout(5000) .build(); builder.setDefaultRequestConfig(requestConfig); HttpClient httpClient = builder.build(); // do something with the client }
Mahedi Sabuj
yashp0808
Level 3
January 2, 2024
JakeCham
JakeChamAuthor
Level 6
January 3, 2024

Thanks a lot.. This explains well 

kautuk_sahni
Community Manager
Community Manager
January 3, 2024

@jakecham Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni