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>
|
<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>
|
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue