mirror of https://github.com/jwtk/jjwt.git
Fixed JDK 8 compile errors
This commit is contained in:
parent
52c9536550
commit
1c20700202
|
@ -232,16 +232,16 @@ public class DefaultJwtParser implements JwtParser {
|
|||
Jws jws = (Jws)jwt;
|
||||
Object body = jws.getBody();
|
||||
if (body instanceof Claims) {
|
||||
return handler.onClaimsJws(jws);
|
||||
return handler.onClaimsJws((Jws<Claims>)jws);
|
||||
} else {
|
||||
return handler.onPlaintextJws(jws);
|
||||
return handler.onPlaintextJws((Jws<String>)jws);
|
||||
}
|
||||
} else {
|
||||
Object body = jwt.getBody();
|
||||
if (body instanceof Claims) {
|
||||
return handler.onPlaintextJwt(jwt);
|
||||
return handler.onClaimsJwt((Jwt<Header,Claims>)jwt);
|
||||
} else {
|
||||
return handler.onClaimsJwt(jwt);
|
||||
return handler.onPlaintextJwt((Jwt<Header,String>)jwt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue