We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
By not propagating the generic type to specific generic to the interface, IDEs warn of not passing the specific type in the Jws.
For example:
Jws<MyClaims> jws = Jwts.parser().setSigningKeyResolver(issuerSigningKeyResolver).parse(jwt, new JwtHandlerAdapter<Jws<MyClaims>>() { @Override public Jws<MyClaims> onClaimsJws(Jws<Claims> jws) { MyClaims myClaims = ...; return new DefaultJws<>(jws.getHeader(), myClaims, jws.getSignature()); } });
The IDE complains the the returned type is not of Jws<MyClaims>.
Jws<MyClaims>
Solution will be add the generic body to the signature of the class:
public class DefaultJws<B> implements Jws<B>
The text was updated successfully, but these errors were encountered:
Resolved by PR #40. Will be released in 0.6.
Sorry, something went wrong.
No branches or pull requests
By not propagating the generic type to specific generic to the interface, IDEs warn of not passing the specific type in the Jws.
For example:
The IDE complains the the returned type is not of
Jws<MyClaims>
.Solution will be add the generic body to the signature of the class:
public class DefaultJws<B> implements Jws<B>
The text was updated successfully, but these errors were encountered: