@@ -164,7 +164,7 @@ public class LogManager {
164
164
// LoggerContext for system loggers and user loggers
165
165
private final LoggerContext systemContext = new SystemLoggerContext ();
166
166
private final LoggerContext userContext = new LoggerContext ();
167
- // non final field - make it volatile to make sure that other threads
167
+ // non- final field - make it volatile to make sure that other threads
168
168
// will see the new value once ensureLogManagerInitialized() has finished
169
169
// executing.
170
170
private volatile Logger rootLogger ;
@@ -312,7 +312,6 @@ protected LogManager() {
312
312
*/
313
313
private boolean initializedCalled = false ;
314
314
private volatile boolean initializationDone = false ;
315
- @ SuppressWarnings ("removal" )
316
315
final void ensureLogManagerInitialized () {
317
316
final LogManager owner = this ;
318
317
if (initializationDone || owner != manager ) {
@@ -422,15 +421,11 @@ private void readPrimordialConfiguration() { // must be called while holding con
422
421
}
423
422
}
424
423
425
- // LoggerContext maps from AppContext
426
- private WeakHashMap <Object , LoggerContext > contextsMap = null ;
427
-
428
424
// Returns the LoggerContext for the user code (i.e. application or AppContext).
429
425
// Loggers are isolated from each AppContext.
430
426
private LoggerContext getUserContext () {
431
- LoggerContext context = null ;
432
- // for standalone app, return userContext
433
- return context != null ? context : userContext ;
427
+ // return userContext
428
+ return userContext ;
434
429
}
435
430
436
431
// The system context.
@@ -447,7 +442,7 @@ private List<LoggerContext> contexts() {
447
442
448
443
// Find or create a specified logger instance. If a logger has
449
444
// already been created with the given name it is returned.
450
- // Otherwise a new logger instance is created and registered
445
+ // Otherwise, a new logger instance is created and registered
451
446
// in the LogManager global namespace.
452
447
// This method will always return a non-null Logger object.
453
448
// Synchronization is not required here. All synchronization for
0 commit comments