diff --git a/src/main/java/io/github/brenoepics/at4j/util/logging/LoggerUtil.java b/src/main/java/io/github/brenoepics/at4j/util/logging/LoggerUtil.java index ca1484f..e5fdd6d 100644 --- a/src/main/java/io/github/brenoepics/at4j/util/logging/LoggerUtil.java +++ b/src/main/java/io/github/brenoepics/at4j/util/logging/LoggerUtil.java @@ -5,27 +5,27 @@ /** This class is used to get a {@link Logger} instance. */ public class LoggerUtil { - LoggerUtil() { - throw new UnsupportedOperationException(); - } + LoggerUtil() { + throw new UnsupportedOperationException(); + } - /** - * Get or create a logger with the given name. - * - * @param name The name of the logger. - * @return The logger with the given name. - */ - public static Logger getLogger(String name) { - return LoggerFactory.getLogger(name); - } + /** + * Get or create a logger with the given name. + * + * @param name The name of the logger. + * @return The logger with the given name. + */ + public static Logger getLogger(String name) { + return LoggerFactory.getLogger(name); + } - /** - * Gets or creates a logger for the given class. - * - * @param clazz The class of the logger. - * @return A logger for the given class. - */ - public static Logger getLogger(Class clazz) { - return LoggerFactory.getLogger(clazz); - } -} \ No newline at end of file + /** + * Gets or creates a logger for the given class. + * + * @param clazz The class of the logger. + * @return A logger for the given class. + */ + public static Logger getLogger(Class clazz) { + return LoggerFactory.getLogger(clazz); + } +} diff --git a/src/main/java/io/github/brenoepics/at4j/util/rest/RestRequestResult.java b/src/main/java/io/github/brenoepics/at4j/util/rest/RestRequestResult.java index f6cb2e9..1bd9023 100644 --- a/src/main/java/io/github/brenoepics/at4j/util/rest/RestRequestResult.java +++ b/src/main/java/io/github/brenoepics/at4j/util/rest/RestRequestResult.java @@ -10,6 +10,7 @@ import java.io.IOException; import java.net.http.HttpResponse; import java.util.Optional; + /** The result of a {@link RestRequest}. */ public class RestRequestResult { diff --git a/src/test/java/io/github/brenoepics/at4j/util/logging/ProtectedLoggerTest.java b/src/test/java/io/github/brenoepics/at4j/util/logging/ProtectedLoggerTest.java index 61854d3..f5c9f03 100644 --- a/src/test/java/io/github/brenoepics/at4j/util/logging/ProtectedLoggerTest.java +++ b/src/test/java/io/github/brenoepics/at4j/util/logging/ProtectedLoggerTest.java @@ -36,7 +36,8 @@ void logTraceMessageTest() { String message = "This is a secret trace message"; Marker marker = Mockito.mock(Marker.class); protectedLogger.handleNormalizedLoggingCall(Level.TRACE, marker, message, null, null); - verify(delegate).trace(eq(marker), eq("This is a ********** trace message"), isNull(), isNull()); + verify(delegate) + .trace(eq(marker), eq("This is a ********** trace message"), isNull(), isNull()); } @Test @@ -46,7 +47,8 @@ void logDebugMessageTest() { String message = "This is a secret debug message"; Marker marker = Mockito.mock(Marker.class); protectedLogger.handleNormalizedLoggingCall(Level.DEBUG, marker, message, null, null); - verify(delegate).debug(eq(marker), eq("This is a ********** debug message"), isNull(), isNull()); + verify(delegate) + .debug(eq(marker), eq("This is a ********** debug message"), isNull(), isNull()); } @Test @@ -66,7 +68,8 @@ void logErrorMessageTest() { String message = "This is a secret error message"; Marker marker = Mockito.mock(Marker.class); protectedLogger.handleNormalizedLoggingCall(Level.ERROR, marker, message, null, null); - verify(delegate).error(eq(marker), eq("This is a ********** error message"), isNull(), isNull()); + verify(delegate) + .error(eq(marker), eq("This is a ********** error message"), isNull(), isNull()); } @Test