Replace java.lang.ref.Reference.clone() with constructor call

MSAL

The recipe replaces any clone calls that may resolve to a java.lang.ref.Reference.clone() or any of its known subclasses: java.lang.ref.PhantomReference, java.lang.ref.SoftReference, and java.lang.ref.WeakReference with a constructor call passing in the referent and reference queue as parameters.

org.openrewrite.java.migrate.ReferenceCloneMethod
mod run . --recipe=org.openrewrite.java.migrate.ReferenceCloneMethod

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