Skip to content

Commit 4cd1440

Browse files
author
Auto Mation
committed
spotless: Fix code style
1 parent af1158e commit 4cd1440

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

commercetools/commercetools-apachehttp-client/src/main/java/com/commercetools/http/apachehttp/CtApacheHttpClient.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.apache.hc.client5.http.async.methods.SimpleBody;
2121
import org.apache.hc.client5.http.async.methods.SimpleHttpResponse;
2222
import org.apache.hc.client5.http.async.methods.SimpleResponseConsumer;
23-
import org.apache.hc.client5.http.classic.HttpClient;
2423
import org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient;
2524
import org.apache.hc.client5.http.impl.async.HttpAsyncClientBuilder;
2625
import org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder;
@@ -72,7 +71,9 @@ private void init() {
7271
}
7372

7473
public static String clientVersion() {
75-
return "ApacheHttpAsyncClient/" + VersionInfo.loadVersionInfo("org.apache.hc.client5", HttpAsyncClient.class.getClassLoader()).getRelease();
74+
return "ApacheHttpAsyncClient/"
75+
+ VersionInfo.loadVersionInfo("org.apache.hc.client5", HttpAsyncClient.class.getClassLoader())
76+
.getRelease();
7677
}
7778

7879
public CtApacheHttpClient() {

commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/MiddlewareTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import java.util.concurrent.ExecutionException;
99
import java.util.concurrent.atomic.AtomicInteger;
1010

11-
import com.commercetools.api.client.ApiRoot;
1211
import com.commercetools.api.client.ProjectApiRoot;
1312
import com.commercetools.api.defaultconfig.ApiRootBuilder;
1413
import com.commercetools.api.defaultconfig.ServiceRegion;

rmf/rmf-java-base/src/main/java/io/vrap/rmf/base/client/ClientBuilder.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,10 @@ public static String buildDefaultUserAgent() {
745745
Method method = clazz.getMethod("clientVersion");
746746
httpClient = " " + method.invoke(null).toString();
747747
}
748-
catch (ClassNotFoundException | NoSuchMethodException | InvocationTargetException | IllegalAccessException ignored) {
748+
catch (ClassNotFoundException | NoSuchMethodException | InvocationTargetException
749+
| IllegalAccessException ignored) {
749750
}
750-
return userAgent + sdkVersion + " " + " Java/" + runtimeVersion + " (" + osName + "; " + osArch + ")" + httpClient;
751+
return userAgent + sdkVersion + " " + " Java/" + runtimeVersion + " (" + osName + "; " + osArch + ")"
752+
+ httpClient;
751753
}
752754
}

0 commit comments

Comments
 (0)