Replace LaissezFaireSubTypeValidator with an equivalent BasicPolymorphicTypeValidator

Apache 2.0

In Jackson 3, LaissezFaireSubTypeValidator is no longer public. Replace LaissezFaireSubTypeValidator.instance and new LaissezFaireSubTypeValidator() with BasicPolymorphicTypeValidator.builder().allowIfSubType(Object.class).build(), which also allows every subtype.

org.openrewrite.java.jackson.ReplaceLaissezFaireSubTypeValidator
mod run . --recipe=org.openrewrite.java.jackson.ReplaceLaissezFaireSubTypeValidator

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