Avoid using the deprecated empty finalize() method in java.desktop

MSAL

The java.desktop module had a few implementations of finalize() that did nothing and have been removed. This recipe will remove these methods.

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

Install 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.

  1. Remove method invocations java.awt.color.ICC_Profile finalize()
  2. Remove method invocations java.awt.image.ColorModel finalize()
  3. Remove method invocations java.awt.image.IndexColorModel finalize()