Skip to content

Commit ab2cfcc

Browse files
committed
8252831: Correct "no comment" warnings in jdk.net module
Reviewed-by: chegar, vtewari, dfuchs
1 parent 51cca57 commit ab2cfcc

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/jdk.net/share/classes/jdk/net/Sockets.java

+10-2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ private Sockets() {}
7878
* @param name The socket option
7979
* @param value The value of the socket option. May be null for some
8080
* options.
81+
* @param <T> The type of the socket option
8182
*
8283
* @throws UnsupportedOperationException if the socket does not support
8384
* the option.
@@ -107,6 +108,7 @@ public static <T> void setOption(Socket s, SocketOption<T> name, T value) throws
107108
*
108109
* @param s the socket
109110
* @param name The socket option
111+
* @param <T> The type of the socket option
110112
*
111113
* @return The value of the socket option.
112114
*
@@ -135,7 +137,8 @@ public static <T> T getOption(Socket s, SocketOption<T> name) throws IOException
135137
*
136138
* @param s the socket
137139
* @param name The socket option
138-
* @param value The value of the socket option.
140+
* @param value The value of the socket option
141+
* @param <T> The type of the socket option
139142
*
140143
* @throws UnsupportedOperationException if the socket does not support
141144
* the option.
@@ -165,6 +168,7 @@ public static <T> void setOption(ServerSocket s, SocketOption<T> name, T value)
165168
*
166169
* @param s the socket
167170
* @param name The socket option
171+
* @param <T> The type of the socket option
168172
*
169173
* @return The value of the socket option.
170174
*
@@ -194,7 +198,8 @@ public static <T> T getOption(ServerSocket s, SocketOption<T> name) throws IOExc
194198
*
195199
* @param s the socket
196200
* @param name The socket option
197-
* @param value The value of the socket option.
201+
* @param value The value of the socket option
202+
* @param <T> The type of the socket option
198203
*
199204
* @throws UnsupportedOperationException if the socket does not support
200205
* the option.
@@ -225,6 +230,7 @@ public static <T> void setOption(DatagramSocket s, SocketOption<T> name, T value
225230
*
226231
* @param s the socket
227232
* @param name The socket option
233+
* @param <T> The type of the socket option
228234
*
229235
* @return The value of the socket option.
230236
*
@@ -255,6 +261,8 @@ public static <T> T getOption(DatagramSocket s, SocketOption<T> name) throws IOE
255261
*
256262
* @param socketType the type of java.net socket
257263
*
264+
* @return A set of socket options
265+
*
258266
* @throws IllegalArgumentException if socketType is not a valid
259267
* socket type from the java.net package.
260268
*

0 commit comments

Comments
 (0)