Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362968 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -30,6 +30,6 @@ public class BadHashtablePropertyTestCase extends TestCase {
|
||||
}
|
||||
|
||||
public void testPutCalled() throws Exception {
|
||||
Log log = LogFactory.getLog(BadHashtablePropertyTestCase.class);
|
||||
LogFactory.getLog(BadHashtablePropertyTestCase.class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -59,7 +59,7 @@ public class NoOpLogTestCase extends AbstractLogTest
|
||||
*/
|
||||
public Log getLogObject()
|
||||
{
|
||||
return (Log) new NoOpLog(this.getClass().getName());
|
||||
return new NoOpLog(this.getClass().getName());
|
||||
}
|
||||
|
||||
// Test Serializability of standard instance
|
||||
|
||||
Reference in New Issue
Block a user