logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1436712 - /logging/log4j/log4j2/trunk/flume-ng/src/test/java/org/apache/logging/log4j/flume/appender/FlumeAppenderTest.java
Date Tue, 22 Jan 2013 01:26:41 GMT
Author: ggregory
Date: Tue Jan 22 01:26:40 2013
New Revision: 1436712

URL: http://svn.apache.org/viewvc?rev=1436712&view=rev
Log:
Simplify impl.

Modified:
    logging/log4j/log4j2/trunk/flume-ng/src/test/java/org/apache/logging/log4j/flume/appender/FlumeAppenderTest.java

Modified: logging/log4j/log4j2/trunk/flume-ng/src/test/java/org/apache/logging/log4j/flume/appender/FlumeAppenderTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/flume-ng/src/test/java/org/apache/logging/log4j/flume/appender/FlumeAppenderTest.java?rev=1436712&r1=1436711&r2=1436712&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/flume-ng/src/test/java/org/apache/logging/log4j/flume/appender/FlumeAppenderTest.java
(original)
+++ logging/log4j/log4j2/trunk/flume-ng/src/test/java/org/apache/logging/log4j/flume/appender/FlumeAppenderTest.java
Tue Jan 22 01:26:40 2013
@@ -381,8 +381,7 @@ public class FlumeAppenderTest {
     }
 
     private Appender getAppender(final Logger logger, final String name) {
-        final Map<String,Appender<?>> map = logger.getAppenders();
-        return map.get(name);
+        return logger.getAppenders().get(name);
     }
 
     private String getBody(final Event event) throws IOException {



Mime
View raw message