Don't need to nest in else clause.
@@ -70,7 +70,7 @@ public abstract class AbstractLoggerAdapter<L> implements LoggerAdapter<L> {
if (loggers != null) {
return loggers;
- } else {
+ }
lock.writeLock ().lock ();
try {
loggers = registry.get (context);
@@ -83,7 +83,6 @@ public abstract class AbstractLoggerAdapter<L> implements LoggerAdapter<L> {
lock.writeLock ().unlock ();
}
}
- }
/**
* Creates a new named logger for a given {@link LoggerContext}.
