From 40bea47c54898bfe5c8123b80a60713fb4670457 Mon Sep 17 00:00:00 2001 From: Seva Safris Date: Tue, 26 Sep 2023 20:34:28 +0700 Subject: [PATCH] Apply auto-formatting --- .../java/org/libj/logging/DeferredLogger.java | 8 ++++---- .../java/org/libj/logging/LoggerUtil.java | 20 +++++++++---------- .../org/libj/logging/DeferredLoggerTest.java | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/java/org/libj/logging/DeferredLogger.java b/src/main/java/org/libj/logging/DeferredLogger.java index 1000f71..a723b4a 100644 --- a/src/main/java/org/libj/logging/DeferredLogger.java +++ b/src/main/java/org/libj/logging/DeferredLogger.java @@ -148,8 +148,8 @@ private void clear() { * Flushes the buffer of deferred events. This method will invoke the default {@link Appender#doAppend(Object)} method for each * event that satisfies the specified {@code level}. * - * @param level The lowest {@link Level} condition for events to be flushed. If an event has a level lower than {@code level}, - * it will not be flushed. + * @param level The lowest {@link Level} condition for events to be flushed. If an event has a level lower than {@code level}, it + * will not be flushed. */ private void flush(final Level level) { lock.lock(); @@ -297,8 +297,8 @@ private static org.slf4j.Logger defer(final Logger logger, final Level deferredL * @param event The {@link ILoggingEvent}. * @param logger The {@link Logger}. * @param appender The {@link Appender}. - * @return {@code true} if the specified {@link ILoggingEvent} matches the specified {@link Logger} and {@link Appender}; - * otherwise {@code false}. + * @return {@code true} if the specified {@link ILoggingEvent} matches the specified {@link Logger} and {@link Appender}; otherwise + * {@code false}. */ private boolean matchesLogger(final ILoggingEvent event, final Logger logger, final Appender appender) { final String eventLoggerName = event.getLoggerName(); diff --git a/src/main/java/org/libj/logging/LoggerUtil.java b/src/main/java/org/libj/logging/LoggerUtil.java index 49f6852..1df3fcd 100644 --- a/src/main/java/org/libj/logging/LoggerUtil.java +++ b/src/main/java/org/libj/logging/LoggerUtil.java @@ -210,9 +210,9 @@ else if (level == Level.ERROR) /** * Log a message with {@code logger} at {@code level} according to the specified {@code format} and {@code arguments}. *

- * This form avoids superfluous string concatenation when the logger is disabled for the {@code level}. However, this variant - * incurs the hidden (and relatively small) cost of creating an {@code Object[]} before invoking the method, even if - * {@code logger} is disabled for {@code level}. The variants taking {@link #log(Logger,Level,String,Object)} and + * This form avoids superfluous string concatenation when the logger is disabled for the {@code level}. However, this variant incurs + * the hidden (and relatively small) cost of creating an {@code Object[]} before invoking the method, even if {@code logger} is + * disabled for {@code level}. The variants taking {@link #log(Logger,Level,String,Object)} and * {@link #log(Logger,Level,String,Object,Object)} arguments exist solely in order to avoid this hidden cost. * * @param logger The {@link Logger}. @@ -351,9 +351,9 @@ else if (level == Level.ERROR) * Log a message with {@code logger} at {@code level} according to the specified {@code format} and {@code arguments}, with the * specific {@code marker}. *

- * This form avoids superfluous string concatenation when the logger is disabled for the {@code level}. However, this variant - * incurs the hidden (and relatively small) cost of creating an {@code Object[]} before invoking the method, even if - * {@code logger} is disabled for {@code level}. The variants taking {@link #log(Logger,Level,String,Object)} and + * This form avoids superfluous string concatenation when the logger is disabled for the {@code level}. However, this variant incurs + * the hidden (and relatively small) cost of creating an {@code Object[]} before invoking the method, even if {@code logger} is + * disabled for {@code level}. The variants taking {@link #log(Logger,Level,String,Object)} and * {@link #log(Logger,Level,String,Object,Object)} arguments exist solely in order to avoid this hidden cost. *

* This method is similar to {@link #log(Logger,Level,String,Object...)} method except that the marker data is also taken into @@ -438,8 +438,8 @@ private static int convert(final StringBuilder builder, final CharSequence str, } /** - * Log a debug message representing a method signature to the specified {@link Logger logger} with the provided {@link Level - * level} of the form + * Log a debug message representing a method signature to the specified {@link Logger logger} with the provided {@link Level level} + * of the form * *

    * $method(String.format($format, $args...))
@@ -489,8 +489,8 @@ else if (args.length > 0 && a < args.length) {
   }
 
   /**
-   * Log a debug message representing a method signature to the specified {@link Logger logger} with the provided {@link Level
-   * level} of the form
+   * Log a debug message representing a method signature to the specified {@link Logger logger} with the provided {@link Level level}
+   * of the form
    *
    * 
    * $method($args...)
diff --git a/src/test/java/org/libj/logging/DeferredLoggerTest.java b/src/test/java/org/libj/logging/DeferredLoggerTest.java
index a9f8828..012b7e5 100644
--- a/src/test/java/org/libj/logging/DeferredLoggerTest.java
+++ b/src/test/java/org/libj/logging/DeferredLoggerTest.java
@@ -34,7 +34,7 @@ public class DeferredLoggerTest extends LayoutBase {
 
   @Override
   public String doLayout(final ILoggingEvent event) {
-//    System.err.println(event.getFormattedMessage());
+    // System.err.println(event.getFormattedMessage());
     events.add(event.getFormattedMessage());
     return "";
   }