mirror of https://github.com/jwtk/jjwt.git
Final fix. Typo fixes. And test coverage.
This commit is contained in:
parent
262c527674
commit
222032a208
|
@ -54,6 +54,11 @@
|
|||
<artifactId>jjwt-orgjson</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-gson</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
|
@ -34,8 +34,8 @@ public class RuntimeClasspathDeserializerLocator<T> implements InstanceLocator<D
|
|||
return Classes.newInstance("io.jsonwebtoken.io.JacksonDeserializer");
|
||||
} else if (isAvailable("io.jsonwebtoken.io.OrgJsonDeserializer")) {
|
||||
return Classes.newInstance("io.jsonwebtoken.io.OrgJsonDeserializer");
|
||||
} else if (isAvailable("io.jsonwebtoken.io.GsonDeSerializer")) {
|
||||
return Classes.newInstance("io.jsonwebtoken.io.GsonDeSerializer");
|
||||
} else if (isAvailable("io.jsonwebtoken.io.GsonDeserializer")) {
|
||||
return Classes.newInstance("io.jsonwebtoken.io.GsonDeserializer");
|
||||
} else {
|
||||
throw new IllegalStateException("Unable to discover any JSON Deserializer implementations on the classpath.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue