Use java.net.MulticastSocket#getTimeToLive()
MSALUse 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. MigrateMulticastSocketGetTTLToGetTimeToLivemod run . --recipe= org. openrewrite. java. migrate. net. MigrateMulticastSocketGetTTLToGetTimeToLiveInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.