Cloud Non production pipeline error | Community
Skip to main content
JakeCham
New Participant
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

kautuk_sahni
Employee
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
yashp0808
New Participant
January 2, 2024
JakeCham
JakeChamAuthor
New Participant
January 3, 2024

Thanks a lot.. This explains well 

Mahedi_Sabuj
Mahedi_SabujAccepted solution
New Participant
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