Catch TypeNotPresentException thrown by Class.getAnnotation()
MSALReplace catch blocks for ArrayStoreException around Class.getAnnotation() with TypeNotPresentException to ensure compatibility with Java 11+.
org. openrewrite. java. migrate. ArrayStoreExceptionToTypeNotPresentExceptionmod run . --recipe= org. openrewrite. java. migrate. ArrayStoreExceptionToTypeNotPresentExceptionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.