Skip to content

Commit eb09ce0

Browse files
committed
spotless: Fix code style
1 parent 36acdd6 commit eb09ce0

7 files changed

Lines changed: 4 additions & 11 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import java.util.concurrent.CompletableFuture;
1010
import java.util.concurrent.ExecutorService;
1111
import java.util.function.Supplier;
12-
import java.util.stream.Collectors;
1312
import java.util.zip.GZIPInputStream;
1413

1514
import io.vrap.rmf.base.client.*;

commercetools/commercetools-async-http-client/src/main/java/com/commercetools/http/asynchttp/CtAsyncHttpClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
package com.commercetools.http.asynchttp;
33

4-
import java.util.Objects;
54
import java.util.Optional;
65
import java.util.concurrent.CompletableFuture;
76
import java.util.concurrent.ExecutorService;

commercetools/commercetools-okhttp-client3/src/main/java/com/commercetools/http/okhttp3/CtOkHttp3Client.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import java.util.concurrent.ExecutorService;
88
import java.util.concurrent.TimeUnit;
99
import java.util.function.Supplier;
10-
import java.util.stream.Collectors;
1110

1211
import io.vrap.rmf.base.client.*;
1312
import io.vrap.rmf.base.client.utils.Utils;

commercetools/commercetools-okhttp-client4/src/main/java/com/commercetools/http/okhttp4/CtOkHttp4Client.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import java.util.concurrent.ExecutorService;
88
import java.util.concurrent.TimeUnit;
99
import java.util.function.Supplier;
10-
import java.util.stream.Collectors;
1110

1211
import io.vrap.rmf.base.client.*;
1312
import io.vrap.rmf.base.client.utils.Utils;

commercetools/commercetools-okhttp-client5/src/main/java/com/commercetools/http/okhttp5/CtOkHttp5Client.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import java.util.concurrent.ExecutorService;
88
import java.util.concurrent.TimeUnit;
99
import java.util.function.Supplier;
10-
import java.util.stream.Collectors;
1110

1211
import io.vrap.rmf.base.client.*;
1312
import io.vrap.rmf.base.client.utils.Utils;

commercetools/commercetools-reactornetty-client/src/main/java/com/commercetools/http/netty/CtNettyHttpClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
package com.commercetools.http.netty;
33

4-
import java.util.Objects;
54
import java.util.concurrent.CompletableFuture;
65
import java.util.concurrent.ExecutorService;
76
import java.util.function.BiFunction;

rmf/rmf-java-base/src/main/java/io/vrap/rmf/base/client/oauth2/BaseAuthTokenSupplier.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public BaseAuthTokenSupplier(final VrapHttpClient vrapHttpClient, ApiHttpRequest
3232
public CompletableFuture<AuthenticationToken> getToken() {
3333
return vrapHttpClient.execute(apiHttpRequest).whenComplete((response, throwable) -> {
3434
logger.info(() -> apiHttpRequest.getMethod().name() + " " + apiHttpRequest.getUri() + " "
35-
+ response.getStatusCode());
35+
+ response.getStatusCode());
3636
if (throwable != null) {
3737
logger.error(() -> response, throwable);
3838
}
@@ -48,10 +48,9 @@ public CompletableFuture<AuthenticationToken> getToken() {
4848
+ " : auth token URI may be incorrect e.g. https://auth.europe-west1.gcp.commercetools.com/oauth/token",
4949
apiHttpResponse));
5050
}
51-
throw new CompletionException(
52-
new AuthException(apiHttpResponse.getStatusCode(),
53-
new String(apiHttpResponse.getBody(), StandardCharsets.UTF_8),
54-
apiHttpRequest.getHeaders(), apiHttpResponse.getMessage(), apiHttpResponse));
51+
throw new CompletionException(new AuthException(apiHttpResponse.getStatusCode(),
52+
new String(apiHttpResponse.getBody(), StandardCharsets.UTF_8), apiHttpRequest.getHeaders(),
53+
apiHttpResponse.getMessage(), apiHttpResponse));
5554
}
5655
return apiHttpResponse;
5756
})

0 commit comments

Comments
 (0)