Use Hashtable instead of HashMap, for JDK 1.1
compatibility, and to solve sync issues git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138851 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//logging/src/java/org/apache/commons/logging/LogSource.java,v 1.10 2002/01/17 22:55:43 rdonkin Exp $
|
||||
* $Revision: 1.10 $
|
||||
* $Date: 2002/01/17 22:55:43 $
|
||||
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//logging/src/java/org/apache/commons/logging/LogSource.java,v 1.11 2002/02/03 01:28:00 sanders Exp $
|
||||
* $Revision: 1.11 $
|
||||
* $Date: 2002/02/03 01:28:00 $
|
||||
*
|
||||
* ====================================================================
|
||||
*
|
||||
@@ -62,10 +62,8 @@
|
||||
package org.apache.commons.logging;
|
||||
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.util.Iterator;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.Hashtable;
|
||||
|
||||
|
||||
/**
|
||||
@@ -94,13 +92,13 @@ import java.lang.reflect.InvocationTargetException;
|
||||
* </ul>
|
||||
*
|
||||
* @author Rod Waldhoff
|
||||
* @version $Id: LogSource.java,v 1.10 2002/01/17 22:55:43 rdonkin Exp $
|
||||
* @version $Id: LogSource.java,v 1.11 2002/02/03 01:28:00 sanders Exp $
|
||||
*/
|
||||
public class LogSource {
|
||||
|
||||
// ------------------------------------------------------- Class Attributes
|
||||
|
||||
static protected HashMap logs = new HashMap();
|
||||
static protected Hashtable logs = new Hashtable();
|
||||
|
||||
/** Is log4j available (in the current classpath) */
|
||||
static protected boolean log4jIsAvailable = false;
|
||||
@@ -142,7 +140,8 @@ public class LogSource {
|
||||
String name = null;
|
||||
try {
|
||||
name = System.getProperty("org.apache.commons.logging.log");
|
||||
} catch (Throwable t) { }
|
||||
} catch (Throwable t) {
|
||||
}
|
||||
if (name != null) {
|
||||
try {
|
||||
setLogImplementation(name);
|
||||
|
||||
Reference in New Issue
Block a user