[LOGBack-dev] svn commit: r300 - logback/classic/trunk/src/main/java/ch/qos/logback/classic
noreply.seb at qos.ch
noreply.seb at qos.ch
Tue Jul 25 15:09:10 CEST 2006
Author: seb
Date: Tue Jul 25 15:09:09 2006
New Revision: 300
Modified:
logback/classic/trunk/src/main/java/ch/qos/logback/classic/LoggerContext.java
Log:
Type Safety
Modified: logback/classic/trunk/src/main/java/ch/qos/logback/classic/LoggerContext.java
==============================================================================
--- logback/classic/trunk/src/main/java/ch/qos/logback/classic/LoggerContext.java (original)
+++ logback/classic/trunk/src/main/java/ch/qos/logback/classic/LoggerContext.java Tue Jul 25 15:09:09 2006
@@ -30,14 +30,14 @@
// We want loggerCache to be synchronized so Hashtable is a good choice. In practice, it
// performs a little faster than the map returned by Collections.synchronizedMap at the
// cost of a very slightly higher memory footprint.
- private Hashtable loggerCache;
+ private Hashtable<String, Logger> loggerCache;
public LoggerContext() {
super();
this.root = new Logger("root", null, this);
this.root.setLevel(Level.DEBUG);
- this.loggerCache = new Hashtable();
+ this.loggerCache = new Hashtable<String, Logger>();
size = 1;
putObject(CoreGlobal.EVALUATOR_MAP, new HashMap());
}
More information about the logback-dev
mailing list