Final fix. Typo fixes. And test coverage.

This commit is contained in:
Andrea Paternesi 2019-07-16 16:36:12 +02:00
parent 262c527674
commit 222032a208
2 changed files with 7 additions and 2 deletions

View File

@ -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>

View File

@ -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.");
}