Skip to content

Commit

Permalink
Apply auto-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Sep 26, 2023
1 parent bb0d5b1 commit 40bea47
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/libj/logging/DeferredLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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<ILoggingEvent> appender) {
final String eventLoggerName = event.getLoggerName();
Expand Down
20 changes: 10 additions & 10 deletions src/main/java/org/libj/logging/LoggerUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
* <p>
* 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}.
Expand Down Expand Up @@ -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}.
* <p>
* 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.
* <p>
* This method is similar to {@link #log(Logger,Level,String,Object...)} method except that the marker data is also taken into
Expand Down Expand Up @@ -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
*
* <pre>
* $method(String.format($format, $args...))
Expand Down Expand Up @@ -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
*
* <pre>
* $method($args...)
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/libj/logging/DeferredLoggerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class DeferredLoggerTest extends LayoutBase<ILoggingEvent> {

@Override
public String doLayout(final ILoggingEvent event) {
// System.err.println(event.getFormattedMessage());
// System.err.println(event.getFormattedMessage());
events.add(event.getFormattedMessage());
return "";
}
Expand Down

0 comments on commit 40bea47

Please sign in to comment.