OpenJDK / jdk / jdk
changeset 57732:2186f9d477c1
8237075: @since tag missing from DatagramSocket and MulticastSocket methods
Summary: Methods from DatagramSocket and MulticastSocket added in JDK1.2 do not have their @since tags. This fix adds them in
Reviewed-by: alanb, chegar, dfuchs
author | pconcannon |
---|---|
date | Fri, 17 Jan 2020 12:53:31 +0000 |
parents | 931354c6323d |
children | d8341e9ad86d |
files | src/java.base/share/classes/java/net/DatagramSocket.java src/java.base/share/classes/java/net/MulticastSocket.java |
diffstat | 2 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java.base/share/classes/java/net/DatagramSocket.java Thu Nov 07 17:11:59 2019 +0100 +++ b/src/java.base/share/classes/java/net/DatagramSocket.java Fri Jan 17 12:53:31 2020 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2020, 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 @@ -499,6 +499,7 @@ * not permit access to the given remote address * * @see #disconnect + * @since 1.2 */ public void connect(InetAddress address, int port) { try { @@ -546,6 +547,7 @@ * then this method has no effect. * * @see #connect + * @since 1.2 */ public void disconnect() { synchronized (this) { @@ -598,6 +600,7 @@ * after the socket is closed. * * @return the address to which this socket is connected. + * @since 1.2 */ public InetAddress getInetAddress() { return connectedAddress; @@ -612,6 +615,7 @@ * after the socket is closed. * * @return the port number to which this socket is connected. + * @since 1.2 */ public int getPort() { return connectedPort; @@ -1009,6 +1013,7 @@ * @throws IllegalArgumentException if the value is 0 or is * negative. * @see #getSendBufferSize() + * @since 1.2 */ public synchronized void setSendBufferSize(int size) throws SocketException { if (!(size > 0)) { @@ -1027,6 +1032,7 @@ * @throws SocketException if there is an error in * the underlying protocol, such as an UDP error. * @see #setSendBufferSize + * @since 1.2 */ public synchronized int getSendBufferSize() throws SocketException { if (isClosed()) @@ -1066,6 +1072,7 @@ * @throws IllegalArgumentException if the value is 0 or is * negative. * @see #getReceiveBufferSize() + * @since 1.2 */ public synchronized void setReceiveBufferSize(int size) throws SocketException { if (size <= 0) { @@ -1083,6 +1090,7 @@ * @return the value of the SO_RCVBUF option for this {@code DatagramSocket} * @throws SocketException if there is an error in the underlying protocol, such as an UDP error. * @see #setReceiveBufferSize(int) + * @since 1.2 */ public synchronized int getReceiveBufferSize() throws SocketException { if (isClosed())
--- a/src/java.base/share/classes/java/net/MulticastSocket.java Thu Nov 07 17:11:59 2019 +0100 +++ b/src/java.base/share/classes/java/net/MulticastSocket.java Fri Jan 17 12:53:31 2020 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2020, 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 @@ -280,6 +280,7 @@ * default time-to-live value * * @see #getTimeToLive() + * @since 1.2 */ public void setTimeToLive(int ttl) throws IOException { if (ttl < 0 || ttl > 255) { @@ -315,6 +316,7 @@ * getting the default time-to-live value * @return the default time-to-live value * @see #setTimeToLive(int) + * @since 1.2 */ public int getTimeToLive() throws IOException { if (isClosed())