Fixed JDK 8 compile errors

This commit is contained in:
Les Hazlewood 2014-09-26 20:19:49 -07:00
parent 52c9536550
commit 1c20700202
1 changed files with 4 additions and 4 deletions

View File

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