From 126c55f2cb7bc1faff51bb5897a877204c03cba8 Mon Sep 17 00:00:00 2001 From: Chris Hegarty Date: Thu, 15 Aug 2013 15:16:31 +0100 Subject: [PATCH] 8022126: Remove throws SocketException from DatagramPacket constructors accepting SocketAddress Reviewed-by: smarks, alanb, michaelm, darcy --- jdk/src/share/classes/java/net/DatagramPacket.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jdk/src/share/classes/java/net/DatagramPacket.java b/jdk/src/share/classes/java/net/DatagramPacket.java index b0728f01cd0..0c9bceb160b 100644 --- a/jdk/src/share/classes/java/net/DatagramPacket.java +++ b/jdk/src/share/classes/java/net/DatagramPacket.java @@ -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); }