mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8332181: Deprecate for removal the MulticastSocket.send(DatagramPacket, byte) and setTTL/getTTL methods on DatagramSocketImpl and MulticastSocket
Reviewed-by: dfuchs, iris, alanb
This commit is contained in:
parent
f5ab7dff40
commit
ce99198e3a
4 changed files with 14 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1995, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1995, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -650,8 +650,8 @@ final class NetMulticastSocket extends MulticastSocket {
|
|||
*/
|
||||
private InetAddress infAddress = null;
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
@SuppressWarnings("removal")
|
||||
public void setTTL(byte ttl) throws IOException {
|
||||
if (isClosed())
|
||||
throw new SocketException("Socket is closed");
|
||||
|
@ -668,8 +668,8 @@ final class NetMulticastSocket extends MulticastSocket {
|
|||
getImpl().setTimeToLive(ttl);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
@SuppressWarnings("removal")
|
||||
public byte getTTL() throws IOException {
|
||||
if (isClosed())
|
||||
throw new SocketException("Socket is closed");
|
||||
|
@ -884,7 +884,6 @@ final class NetMulticastSocket extends MulticastSocket {
|
|||
}
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated
|
||||
@Override
|
||||
public void send(DatagramPacket p, byte ttl)
|
||||
throws IOException {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue