Use modernized java.lang APIs
MSALCertain Java lang APIs have become deprecated and their usages changed, necessitating usage changes.
org. openrewrite. java. migrate. lang. JavaLangAPIsmod run . --recipe= org. openrewrite. java. migrate. lang. JavaLangAPIsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Use
Character#isJavaIdentifierStart(char) - Use
Character#isJavaIdentifierPart(char) - Use
Character#isWhitespace(char) - Use
Runtime.Version#feature() - Use
Runtime.Version#interim() - Use
Runtime.Version#update() - Use
SecurityManager#checkMulticast(InetAddress) - Use
ClassLoader#defineClass(String, byte[], int, int) - Use
Class#getDeclaredConstructor().newInstance()