Remove redundant casts.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/4612109f
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/4612109f
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/4612109f

Branch: refs/heads/LOG4J2-1161
Commit: 4612109f696fe9e841773ff1eedbd55b49ad1f06
Parents: 22a8b3d
Author: Matt Sicker <boa...@gmail.com>
Authored: Wed Oct 21 02:35:57 2015 -0500
Committer: Matt Sicker <boa...@gmail.com>
Committed: Wed Oct 21 02:35:57 2015 -0500

----------------------------------------------------------------------
 .../log4j/core/appender/routing/RoutingAppenderWithJndiTest.java | 4 ++--
 .../log4j/core/appender/routing/RoutingDefaultAppenderTest.java  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/4612109f/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/routing/RoutingAppenderWithJndiTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/routing/RoutingAppenderWithJndiTest.java
 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/routing/RoutingAppenderWithJndiTest.java
index f27f8ff..9339846 100644
--- 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/routing/RoutingAppenderWithJndiTest.java
+++ 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/routing/RoutingAppenderWithJndiTest.java
@@ -50,8 +50,8 @@ public class RoutingAppenderWithJndiTest {
     @Before
     public void before() throws NamingException {
         MockContextFactory.setAsInitial();
-        listAppender1 = (ListAppender) 
RoutingAppenderWithJndiTest.init.getAppender("List1");
-        listAppender2 = (ListAppender) 
RoutingAppenderWithJndiTest.init.getAppender("List2");
+        listAppender1 = 
RoutingAppenderWithJndiTest.init.getListAppender("List1");
+        listAppender2 = 
RoutingAppenderWithJndiTest.init.getListAppender("List2");
     }
 
     @After

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/4612109f/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/routing/RoutingDefaultAppenderTest.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/routing/RoutingDefaultAppenderTest.java
 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/routing/RoutingDefaultAppenderTest.java
index 948f8a9..a84460c 100644
--- 
a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/routing/RoutingDefaultAppenderTest.java
+++ 
b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/routing/RoutingDefaultAppenderTest.java
@@ -48,7 +48,7 @@ public class RoutingDefaultAppenderTest {
 
     @Before
     public void setUp() throws Exception {
-        app = (ListAppender) this.init.getAppender("List");
+        app = this.init.getListAppender("List");
     }
 
     @After

Reply via email to