Skip to content

CAMEL-14008 changed HTTPConnection to a HttpConnectionPool#3188

Closed
Braus wants to merge 1 commit intoapache:masterfrom
Braus:master
Closed

CAMEL-14008 changed HTTPConnection to a HttpConnectionPool#3188
Braus wants to merge 1 commit intoapache:masterfrom
Braus:master

Conversation

@Braus
Copy link

@Braus Braus commented Sep 24, 2019

With the help of @Maurice-Betzel

Copy link
Contributor

@oscerd oscerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor stuff, I'd like to have the feedback of @davsclaus and @punkhorn

import org.apache.http.protocol.RequestUserAgent;
import org.apache.http.util.Args;

import java.io.IOException;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run the build with sourcecheck profile enabled and check the warnings. The imports order is wrong.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @oscerd,

Where can I find the sourcecheck profile? I'm using Intellij

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,

You just need to run the module build with -Psourcecheck. You'll see some warnings at the beginning.

HttpClientConnection httpClientConnection = null;
try {
httpClientConnection = connectionRequest.get(10, TimeUnit.SECONDS);
} catch (InterruptedException e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be a single catch

String entityContentTransferEncoding = null;
for (Header header : headers) {
if (header.getName().equalsIgnoreCase(AS2Header.CONTENT_TYPE)) {
switch (header.getName()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sourcecheck profile enabled here too

@Braus Braus closed this Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants