Skip to content
Permalink
Browse files

8237075: @SInCE tag missing from DatagramSocket and MulticastSocket m…

…ethods

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
  • Loading branch information
pconcannon committed Jan 17, 2020
1 parent d462a6b commit a589a15e3f898a80633acce673660d7be244409f
@@ -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 @@ void checkAddress (InetAddress addr, String op) {
* 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 @@ public void connect(SocketAddress addr) throws SocketException {
* then this method has no effect.
*
* @see #connect
* @since 1.2
*/
public void disconnect() {
synchronized (this) {
@@ -598,6 +600,7 @@ public boolean isConnected() {
* 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 @@ public InetAddress getInetAddress() {
* 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 @@ public synchronized int getSoTimeout() throws SocketException {
* @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 @@ public synchronized void setSendBufferSize(int size) throws SocketException {
* @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 @@ public synchronized int getSendBufferSize() throws SocketException {
* @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 @@ public synchronized void setReceiveBufferSize(int size) throws SocketException {
* @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())
@@ -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 @@ public void setTTL(byte ttl) throws IOException {
* 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 @@ public byte getTTL() throws IOException {
* 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())

0 comments on commit a589a15

Please sign in to comment.