1
0

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:
Sebastian Bazley
2012-07-18 14:37:13 +00:00
parent 821ac94474
commit b16794f11a
3 changed files with 3 additions and 16 deletions

View File

@@ -30,6 +30,6 @@ public class BadHashtablePropertyTestCase extends TestCase {
}
public void testPutCalled() throws Exception {
Log log = LogFactory.getLog(BadHashtablePropertyTestCase.class);
LogFactory.getLog(BadHashtablePropertyTestCase.class);
}
}

View File

@@ -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) {

View File

@@ -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