Redundant null check
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362964 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -650,7 +650,6 @@ public class SimpleLog implements Log, Serializable {
|
|||||||
{
|
{
|
||||||
ClassLoader classLoader = null;
|
ClassLoader classLoader = null;
|
||||||
|
|
||||||
if (classLoader == null) {
|
|
||||||
try {
|
try {
|
||||||
// Are we running on a JDK 1.2 or later system?
|
// Are we running on a JDK 1.2 or later system?
|
||||||
Method method = Thread.class.getMethod("getContextClassLoader",
|
Method method = Thread.class.getMethod("getContextClassLoader",
|
||||||
@@ -692,7 +691,6 @@ public class SimpleLog implements Log, Serializable {
|
|||||||
// Assume we are running on JDK 1.1
|
// Assume we are running on JDK 1.1
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (classLoader == null) {
|
if (classLoader == null) {
|
||||||
classLoader = SimpleLog.class.getClassLoader();
|
classLoader = SimpleLog.class.getClassLoader();
|
||||||
|
|||||||
Reference in New Issue
Block a user