[LOGBack-dev] svn commit: r279 - logback/classic/trunk/src/main/java/ch/qos/logback/classic

noreply.seb at qos.ch noreply.seb at qos.ch
Tue Jul 25 14:43:43 CEST 2006


Author: seb
Date: Tue Jul 25 14:43:42 2006
New Revision: 279

Modified:
   logback/classic/trunk/src/main/java/ch/qos/logback/classic/Logger.java
Log:
Type Safety

Modified: logback/classic/trunk/src/main/java/ch/qos/logback/classic/Logger.java
==============================================================================
--- logback/classic/trunk/src/main/java/ch/qos/logback/classic/Logger.java	(original)
+++ logback/classic/trunk/src/main/java/ch/qos/logback/classic/Logger.java	Tue Jul 25 14:43:42 2006
@@ -22,7 +22,6 @@
 import ch.qos.logback.core.filter.Filter;
 import ch.qos.logback.core.spi.AppenderAttachable;
 import ch.qos.logback.core.spi.AppenderAttachableImpl;
-import ch.qos.logback.core.status.ErrorStatus;
 
 
 public final class Logger implements org.slf4j.Logger, AppenderAttachable {
@@ -56,7 +55,7 @@
   /**
    * The children of this logger. A logger may have zero or more children.
    */
-  private List childrenList;
+  private List<Logger> childrenList;
 
   private AppenderAttachableImpl aai;
   /**
@@ -311,7 +310,7 @@
     }
 
     if (childrenList == null) {
-      childrenList = new ArrayList();
+      childrenList = new ArrayList<Logger>();
     }
     Logger childLogger;
     if (this.isRootLogger()) {
@@ -343,7 +342,7 @@
     }
 
     if (childrenList == null) {
-      childrenList = new ArrayList(DEFAULT_CHILD_ARRAY_SIZE);
+      childrenList = new ArrayList<Logger>(DEFAULT_CHILD_ARRAY_SIZE);
     }
     Logger childLogger;
     childLogger = new Logger(childName, this, this.loggerContext);



More information about the logback-dev mailing list