From b11b40feeaeec2d2c25c2265c25370556f784829 Mon Sep 17 00:00:00 2001 From: github-actions <> Date: Tue, 30 Apr 2024 14:36:40 +0000 Subject: [PATCH] Google Java Format --- .../io/github/brenoepics/at4j/AzureApiBuilder.java | 4 ++-- .../io/github/brenoepics/at4j/core/AzureApiImpl.java | 6 +++++- .../github/brenoepics/at4j/core/thread/ThreadPool.java | 10 +--------- .../at4j/core/thread/ThreadPoolImplTest.java | 2 +- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/main/java/io/github/brenoepics/at4j/AzureApiBuilder.java b/src/main/java/io/github/brenoepics/at4j/AzureApiBuilder.java index 0f886eb..1d6c9f6 100644 --- a/src/main/java/io/github/brenoepics/at4j/AzureApiBuilder.java +++ b/src/main/java/io/github/brenoepics/at4j/AzureApiBuilder.java @@ -127,7 +127,6 @@ public AzureApiBuilder sslParameters(SSLParameters sslParameters) { return this; } - /** * Sets the executor service for the Azure API. * @@ -177,6 +176,7 @@ public AzureApi build() { httpClient.executor(executorService); } - return new AzureApiImpl<>(httpClient.build(), baseURL, subscriptionKey, subscriptionRegion, executorService); + return new AzureApiImpl<>( + httpClient.build(), baseURL, subscriptionKey, subscriptionRegion, executorService); } } diff --git a/src/main/java/io/github/brenoepics/at4j/core/AzureApiImpl.java b/src/main/java/io/github/brenoepics/at4j/core/AzureApiImpl.java index 26f34e7..c075198 100644 --- a/src/main/java/io/github/brenoepics/at4j/core/AzureApiImpl.java +++ b/src/main/java/io/github/brenoepics/at4j/core/AzureApiImpl.java @@ -57,7 +57,11 @@ public class AzureApiImpl implements AzureApi { * @param subscriptionRegion The subscription region for this instance. */ public AzureApiImpl( - HttpClient httpClient, BaseURL baseURL, String subscriptionKey, String subscriptionRegion, ExecutorService executor) { + HttpClient httpClient, + BaseURL baseURL, + String subscriptionKey, + String subscriptionRegion, + ExecutorService executor) { this.httpClient = httpClient; this.baseURL = baseURL; this.subscriptionKey = subscriptionKey; diff --git a/src/main/java/io/github/brenoepics/at4j/core/thread/ThreadPool.java b/src/main/java/io/github/brenoepics/at4j/core/thread/ThreadPool.java index 613ac2f..171a176 100644 --- a/src/main/java/io/github/brenoepics/at4j/core/thread/ThreadPool.java +++ b/src/main/java/io/github/brenoepics/at4j/core/thread/ThreadPool.java @@ -1,11 +1,6 @@ package io.github.brenoepics.at4j.core.thread; -import java.util.Optional; -import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutorService; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.TimeUnit; -import java.util.function.Supplier; /** This class creates and contains thread pools which are used by AT4J. */ public interface ThreadPool { @@ -17,9 +12,6 @@ public interface ThreadPool { */ ExecutorService getExecutorService(); - /** - * Shutdowns the thread pool. - * - */ + /** Shutdowns the thread pool. */ void shutdown(); } diff --git a/src/test/java/io/github/brenoepics/at4j/core/thread/ThreadPoolImplTest.java b/src/test/java/io/github/brenoepics/at4j/core/thread/ThreadPoolImplTest.java index e125155..bfaab87 100644 --- a/src/test/java/io/github/brenoepics/at4j/core/thread/ThreadPoolImplTest.java +++ b/src/test/java/io/github/brenoepics/at4j/core/thread/ThreadPoolImplTest.java @@ -43,4 +43,4 @@ void shouldCreateNewAt4jDefault() { assertNotNull(executorService); assertInstanceOf(ThreadPoolExecutor.class, executorService); } -} \ No newline at end of file +}