commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1362968 - in /commons/proper/logging/trunk/src/test/org/apache/commons/logging: BadHashtablePropertyTestCase.java SimpleLogTestCase.java noop/NoOpLogTestCase.java
Date Wed, 18 Jul 2012 14:37:13 GMT
Author: sebb
Date: Wed Jul 18 14:37:13 2012
New Revision: 1362968

URL: http://svn.apache.org/viewvc?rev=1362968&view=rev
Log:
Unnecessary casts

Modified:
    commons/proper/logging/trunk/src/test/org/apache/commons/logging/BadHashtablePropertyTestCase.java
    commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTestCase.java
    commons/proper/logging/trunk/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java

Modified: commons/proper/logging/trunk/src/test/org/apache/commons/logging/BadHashtablePropertyTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/logging/trunk/src/test/org/apache/commons/logging/BadHashtablePropertyTestCase.java?rev=1362968&r1=1362967&r2=1362968&view=diff
==============================================================================
--- commons/proper/logging/trunk/src/test/org/apache/commons/logging/BadHashtablePropertyTestCase.java
(original)
+++ commons/proper/logging/trunk/src/test/org/apache/commons/logging/BadHashtablePropertyTestCase.java
Wed Jul 18 14:37:13 2012
@@ -30,6 +30,6 @@ public class BadHashtablePropertyTestCas
     }
     
     public void testPutCalled() throws Exception {
-        Log log = LogFactory.getLog(BadHashtablePropertyTestCase.class);
+        LogFactory.getLog(BadHashtablePropertyTestCase.class);
     }
 }

Modified: commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTestCase.java?rev=1362968&r1=1362967&r2=1362968&view=diff
==============================================================================
--- commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTestCase.java
(original)
+++ commons/proper/logging/trunk/src/test/org/apache/commons/logging/SimpleLogTestCase.java
Wed Jul 18 14:37:13 2012
@@ -19,24 +19,11 @@ package org.apache.commons.logging;
 
 import org.apache.commons.logging.impl.SimpleLog;
 
-/**
- * 
- *
- * 
- * 
- * 
- * 
- */
 public class SimpleLogTestCase extends AbstractLogTest
 {
-    /**
-     *
-     *
-     *
-     */
     public Log getLogObject()
     {
-        return (Log) new SimpleLog(this.getClass().getName());
+        return new SimpleLog(this.getClass().getName());
     }
 
     public static void main(String[] args) {

Modified: commons/proper/logging/trunk/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/logging/trunk/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java?rev=1362968&r1=1362967&r2=1362968&view=diff
==============================================================================
--- commons/proper/logging/trunk/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java
(original)
+++ commons/proper/logging/trunk/src/test/org/apache/commons/logging/noop/NoOpLogTestCase.java
Wed Jul 18 14:37:13 2012
@@ -59,7 +59,7 @@ public class NoOpLogTestCase extends Abs
      */
     public Log getLogObject()
     {
-        return (Log) new NoOpLog(this.getClass().getName());
+        return new NoOpLog(this.getClass().getName());
     }
 
     // Test Serializability of standard instance



Mime
View raw message