Use java.net.MulticastSocket#getTimeToLive()

MSAL

Use java.net.MulticastSocket#getTimeToLive() instead of the deprecated java.net.MulticastSocket#getTTL() in Java 1.2 or higher. Where the result is used, it is cast back to byte, so that the value and the expression type stay the same.

org.openrewrite.java.migrate.net.MigrateMulticastSocketGetTTLToGetTimeToLive
mod run . --recipe=org.openrewrite.java.migrate.net.MigrateMulticastSocketGetTTLToGetTimeToLive

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