Cast parsed JWTs to their declared type

Proprietary

Before JJWT 0.12, JwtParser#parse(..) returned a raw Jwt, which could be assigned to a parameterized type such as Jwt<Header, Claims>. It returns a Jwt<?, ?> since, which can't. Casts the result to the declared type, an unchecked conversion as before.

org.openrewrite.java.security.jjwt.CastParsedJwts
mod run . --recipe=org.openrewrite.java.security.jjwt.CastParsedJwts

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.