logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickwilli...@apache.org
Subject svn commit: r1482810 - in /logging/log4j/log4j2/trunk: core/src/main/java/org/apache/logging/log4j/core/appender/AbstractAppender.java log4j12-api/src/test/java/org/apache/log4j/LoggerTest.java
Date Wed, 15 May 2013 13:15:53 GMT
Author: nickwilliams
Date: Wed May 15 13:15:53 2013
New Revision: 1482810

URL: http://svn.apache.org/r1482810
Log:
Removing AbstractAppender#close(), per discussion on mailing list from last month

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractAppender.java
    logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/LoggerTest.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractAppender.java?rev=1482810&r1=1482809&r2=1482810&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractAppender.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/AbstractAppender.java
Wed May 15 13:15:53 2013
@@ -16,6 +16,8 @@
  */
 package org.apache.logging.log4j.core.appender;
 
+import java.io.Serializable;
+
 import org.apache.logging.log4j.Logger;
 import org.apache.logging.log4j.core.Appender;
 import org.apache.logging.log4j.core.ErrorHandler;
@@ -26,8 +28,6 @@ import org.apache.logging.log4j.core.Log
 import org.apache.logging.log4j.core.filter.AbstractFilterable;
 import org.apache.logging.log4j.status.StatusLogger;
 
-import java.io.Serializable;
-
 /**
  * Abstract base class for Appenders. Although Appenders do not have to extend this class,
doing so
  * will simplify their implementation.
@@ -106,13 +106,6 @@ public abstract class AbstractAppender<T
     }
 
     /**
-     * Close the stream associated with the Appender.
-     */
-    public void close() {
-
-    }
-
-    /**
      * Returns the name of the Appender.
      * @return The name of the Appender.
      */

Modified: logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/LoggerTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/LoggerTest.java?rev=1482810&r1=1482809&r2=1482810&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/LoggerTest.java
(original)
+++ logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/LoggerTest.java
Wed May 15 13:15:53 2013
@@ -17,6 +17,11 @@
 
 package org.apache.log4j;
 
+import java.io.Serializable;
+import java.util.List;
+import java.util.Locale;
+import java.util.ResourceBundle;
+
 import org.apache.logging.log4j.core.Appender;
 import org.apache.logging.log4j.core.LogEvent;
 import org.apache.logging.log4j.core.LoggerContext;
@@ -29,11 +34,6 @@ import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
-import java.io.Serializable;
-import java.util.List;
-import java.util.Locale;
-import java.util.ResourceBundle;
-
 import static org.junit.Assert.*;
 
 /**
@@ -499,10 +499,6 @@ public class LoggerTest {
         }
 
         @Override
-        public void close() {
-        }
-
-        @Override
         public void append(final LogEvent event) {
             counter++;
         }



Mime
View raw message