From 9f4965dd17f4a9fc0b516734cc1fcbffe28a77ab Mon Sep 17 00:00:00 2001 From: github-actions <> Date: Thu, 1 Feb 2024 01:58:09 +0000 Subject: [PATCH] Google Java Format --- .../java/io/github/brenoepics/at4j/core/AzureApiImpl.java | 2 -- .../io/github/brenoepics/at4j/core/AzureApiImplTest.java | 4 ++-- .../at4j/data/response/TranslationResponseTest.java | 6 ++++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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 6fcdd7d..402fba9 100644 --- a/src/main/java/io/github/brenoepics/at4j/core/AzureApiImpl.java +++ b/src/main/java/io/github/brenoepics/at4j/core/AzureApiImpl.java @@ -10,7 +10,6 @@ import io.github.brenoepics.at4j.core.thread.ThreadPool; import io.github.brenoepics.at4j.core.thread.ThreadPoolImpl; import io.github.brenoepics.at4j.data.DetectedLanguage; -import io.github.brenoepics.at4j.data.Translation; import io.github.brenoepics.at4j.data.request.AvailableLanguagesParams; import io.github.brenoepics.at4j.data.request.DetectLanguageParams; import io.github.brenoepics.at4j.data.request.TranslateParams; @@ -18,7 +17,6 @@ import io.github.brenoepics.at4j.util.rest.RestEndpoint; import io.github.brenoepics.at4j.util.rest.RestMethod; import io.github.brenoepics.at4j.util.rest.RestRequest; -import io.github.brenoepics.at4j.util.rest.RestRequestResult; import java.net.http.HttpClient; import java.util.ArrayList; diff --git a/src/test/java/io/github/brenoepics/at4j/core/AzureApiImplTest.java b/src/test/java/io/github/brenoepics/at4j/core/AzureApiImplTest.java index 4552717..dc881b9 100644 --- a/src/test/java/io/github/brenoepics/at4j/core/AzureApiImplTest.java +++ b/src/test/java/io/github/brenoepics/at4j/core/AzureApiImplTest.java @@ -8,7 +8,6 @@ import org.junit.jupiter.api.Test; import org.mockito.Mock; -import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Optional; @@ -41,7 +40,8 @@ void returnsEmptyOnInvalidInput() { } }); - CompletableFuture>> response = azureApi.translate(translateParams); + CompletableFuture>> response = + azureApi.translate(translateParams); assertFalse(response.join().isPresent()); } diff --git a/src/test/java/io/github/brenoepics/at4j/data/response/TranslationResponseTest.java b/src/test/java/io/github/brenoepics/at4j/data/response/TranslationResponseTest.java index 8acd03d..eab2616 100644 --- a/src/test/java/io/github/brenoepics/at4j/data/response/TranslationResponseTest.java +++ b/src/test/java/io/github/brenoepics/at4j/data/response/TranslationResponseTest.java @@ -16,7 +16,8 @@ class TranslationResponseTest { void createsTranslationResponseWithDetectedLanguageAndTranslations() { DetectedLanguage detectedLanguage = new DetectedLanguage("en", 1.0f); Translation translation = new Translation("pt", "Olá, mundo!"); - TranslationResponse response = new TranslationResponse(translation.getText(), detectedLanguage, List.of(translation)); + TranslationResponse response = + new TranslationResponse(translation.getText(), detectedLanguage, List.of(translation)); assertEquals(detectedLanguage, response.getDetectedLanguage()); assertEquals(1, response.getTranslations().size()); @@ -26,7 +27,8 @@ void createsTranslationResponseWithDetectedLanguageAndTranslations() { @Test void createsTranslationResponseWithTranslationsOnly() { Translation translation = new Translation("pt", "Olá, mundo!"); - TranslationResponse response = new TranslationResponse(translation.getText(), List.of(translation)); + TranslationResponse response = + new TranslationResponse(translation.getText(), List.of(translation)); assertNull(response.getDetectedLanguage()); assertEquals(1, response.getTranslations().size());