Replace KeyStore.getDefaultType() with "jks"
MSALIn Java 9 the default keystore type changed from JKS to PKCS12. As a result, applications relying on KeyStore.getDefaultType() may encounter issues after migrating, unless their JKS keystore has been converted to PKCS12. This recipe replaces KeyStore.getDefaultType() with "jks" in projects still on Java 8 or earlier, so that they keep the pre Java 9 default keystore type once upgraded.
org. openrewrite. java. migrate. ChangeDefaultKeyStoremod run . --recipe= org. openrewrite. java. migrate. ChangeDefaultKeyStoreInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.