mirror of https://github.com/jwtk/jjwt.git
Issue-34 getting rid of slf4j.
This commit is contained in:
parent
6c2c90ad23
commit
5c66435825
7
pom.xml
7
pom.xml
|
@ -61,7 +61,6 @@
|
|||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<buildNumber>${user.name}-${maven.build.timestamp}</buildNumber>
|
||||
|
||||
<slf4j.version>1.7.6</slf4j.version>
|
||||
<jackson.version>2.4.2</jackson.version>
|
||||
|
||||
<!-- Optional Runtime Dependencies: -->
|
||||
|
@ -78,12 +77,6 @@
|
|||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>${slf4j.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
*/
|
||||
package io.jsonwebtoken.lang;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.lang.reflect.Constructor;
|
||||
|
||||
|
@ -26,11 +23,6 @@ import java.lang.reflect.Constructor;
|
|||
*/
|
||||
public class Classes {
|
||||
|
||||
/**
|
||||
* Private internal log instance.
|
||||
*/
|
||||
private static final Logger log = LoggerFactory.getLogger(Classes.class);
|
||||
|
||||
/**
|
||||
* @since 0.1
|
||||
*/
|
||||
|
@ -78,18 +70,10 @@ public class Classes {
|
|||
Class clazz = THREAD_CL_ACCESSOR.loadClass(fqcn);
|
||||
|
||||
if (clazz == null) {
|
||||
if (log.isTraceEnabled()) {
|
||||
log.trace("Unable to load class named [" + fqcn +
|
||||
"] from the thread context ClassLoader. Trying the current ClassLoader...");
|
||||
}
|
||||
clazz = CLASS_CL_ACCESSOR.loadClass(fqcn);
|
||||
}
|
||||
|
||||
if (clazz == null) {
|
||||
if (log.isTraceEnabled()) {
|
||||
log.trace("Unable to load class named [" + fqcn + "] from the current ClassLoader. " +
|
||||
"Trying the system/application ClassLoader...");
|
||||
}
|
||||
clazz = SYSTEM_CL_ACCESSOR.loadClass(fqcn);
|
||||
}
|
||||
|
||||
|
@ -212,9 +196,7 @@ public class Classes {
|
|||
try {
|
||||
clazz = cl.loadClass(fqcn);
|
||||
} catch (ClassNotFoundException e) {
|
||||
if (log.isTraceEnabled()) {
|
||||
log.trace("Unable to load clazz named [" + fqcn + "] from class loader [" + cl + "]");
|
||||
}
|
||||
//Class couldn't be found by loader
|
||||
}
|
||||
}
|
||||
return clazz;
|
||||
|
@ -233,9 +215,7 @@ public class Classes {
|
|||
try {
|
||||
return doGetClassLoader();
|
||||
} catch (Throwable t) {
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("Unable to acquire ClassLoader.", t);
|
||||
}
|
||||
//Unable to get ClassLoader
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue