8022126: Remove throws SocketException from DatagramPacket constructors accepting SocketAddress

Reviewed-by: smarks, alanb, michaelm, darcy
This commit is contained in:
Chris Hegarty 2013-08-15 15:16:31 +01:00
parent fc8b2309b8
commit 126c55f2cb

View File

@ -139,8 +139,7 @@ class DatagramPacket {
*
* @since 1.4
*/
public DatagramPacket(byte buf[], int offset, int length,
SocketAddress address) throws SocketException {
public DatagramPacket(byte buf[], int offset, int length, SocketAddress address) {
setData(buf, offset, length);
setSocketAddress(address);
}
@ -175,8 +174,7 @@ class DatagramPacket {
* @since 1.4
* @see java.net.InetAddress
*/
public DatagramPacket(byte buf[], int length,
SocketAddress address) throws SocketException {
public DatagramPacket(byte buf[], int length, SocketAddress address) {
this(buf, 0, length, address);
}