changeset 19414:931c01c5c3aa

8022126: Remove throws SocketException from DatagramPacket constructors accepting SocketAddress Reviewed-by: smarks, alanb, michaelm, darcy
author chegar
date Thu, 15 Aug 2013 15:16:31 +0100
parents 56082c988815
children af60b1abf237 ae74350e3d2f
files jdk/src/share/classes/java/net/DatagramPacket.java
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/java/net/DatagramPacket.java	Thu Aug 15 15:04:59 2013 +0100
+++ b/jdk/src/share/classes/java/net/DatagramPacket.java	Thu Aug 15 15:16:31 2013 +0100
@@ -139,8 +139,7 @@
      *
      * @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 @@
      * @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);
     }