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> <artifactId>jjwt-orgjson</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-gson</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -34,8 +34,8 @@ public class RuntimeClasspathDeserializerLocator<T> implements InstanceLocator<D
return Classes.newInstance("io.jsonwebtoken.io.JacksonDeserializer"); return Classes.newInstance("io.jsonwebtoken.io.JacksonDeserializer");
} else if (isAvailable("io.jsonwebtoken.io.OrgJsonDeserializer")) { } else if (isAvailable("io.jsonwebtoken.io.OrgJsonDeserializer")) {
return Classes.newInstance("io.jsonwebtoken.io.OrgJsonDeserializer"); return Classes.newInstance("io.jsonwebtoken.io.OrgJsonDeserializer");
} else if (isAvailable("io.jsonwebtoken.io.GsonDeSerializer")) { } else if (isAvailable("io.jsonwebtoken.io.GsonDeserializer")) {
return Classes.newInstance("io.jsonwebtoken.io.GsonDeSerializer"); return Classes.newInstance("io.jsonwebtoken.io.GsonDeserializer");
} else { } else {
throw new IllegalStateException("Unable to discover any JSON Deserializer implementations on the classpath."); throw new IllegalStateException("Unable to discover any JSON Deserializer implementations on the classpath.");
} }