[logback-dev] svn commit: r1561 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Thu Aug 9 19:46:29 CEST 2007
Author: ceki
Date: Thu Aug 9 19:46:29 2007
New Revision: 1561
Modified:
logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/Loader.java
Log:
minor
Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/Loader.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/Loader.java (original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/Loader.java Thu Aug 9 19:46:29 2007
@@ -81,6 +81,7 @@
return Thread.currentThread().getContextClassLoader();
}
+ @SuppressWarnings("unchecked")
public static Class loadClass(String clazz, Context context) throws ClassNotFoundException {
ClassLoader cl = context.getClass().getClassLoader();
return cl.loadClass(clazz);
@@ -91,6 +92,7 @@
* Class.forname. Under JDK 1.1 only Class.forName is used.
*
*/
+ @SuppressWarnings("unchecked")
public static Class loadClass(String clazz) throws ClassNotFoundException {
// Just call Class.forName(clazz) if we are running under JDK 1.1
// or if we are instructed to ignore the TCL.
More information about the logback-dev
mailing list