Skip to content

Commit

Permalink
Google Java Format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Apr 30, 2024
1 parent d1a8936 commit b11b40f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/github/brenoepics/at4j/AzureApiBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ public AzureApiBuilder sslParameters(SSLParameters sslParameters) {
return this;
}


/**
* Sets the executor service for the Azure API.
*
Expand Down Expand Up @@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ public class AzureApiImpl<T> 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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -17,9 +12,6 @@ public interface ThreadPool {
*/
ExecutorService getExecutorService();

/**
* Shutdowns the thread pool.
*
*/
/** Shutdowns the thread pool. */
void shutdown();
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ void shouldCreateNewAt4jDefault() {
assertNotNull(executorService);
assertInstanceOf(ThreadPoolExecutor.class, executorService);
}
}
}

0 comments on commit b11b40f

Please sign in to comment.