-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8296546: Add @spec tags to API #11073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
30ce235
c29092d
3905ac8
edf0f74
07882ff
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,6 +57,7 @@ private StandardSocketOptions() { } | |
| * require that the Java virtual machine be started with implementation | ||
| * specific privileges to enable this option or send broadcast datagrams. | ||
| * | ||
| * @spec https://www.rfc-editor.org/info/rfc919 RFC 919: Broadcasting Internet Datagrams | ||
| * @see <a href="http://www.ietf.org/rfc/rfc919.txt">RFC 929: | ||
| * Broadcasting Internet Datagrams</a> | ||
|
Comment on lines
+60
to
62
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This |
||
| * @see DatagramSocket#setBroadcast | ||
|
|
@@ -77,6 +78,7 @@ private StandardSocketOptions() { } | |
| * <p> The initial value of this socket option is {@code FALSE}. The socket | ||
| * option may be enabled or disabled at any time. | ||
| * | ||
| * @spec https://www.rfc-editor.org/info/rfc1122 RFC 1122: Requirements for Internet Hosts - Communication Layers | ||
| * @see <a href="http://www.ietf.org/rfc/rfc1122.txt">RFC 1122 | ||
| * Requirements for Internet Hosts -- Communication Layers</a> | ||
|
Comment on lines
+81
to
83
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same remark here: please remove the |
||
| * @see Socket#setKeepAlive | ||
|
|
@@ -147,6 +149,7 @@ private StandardSocketOptions() { } | |
| * socket receive buffer to be changed after the socket is bound is system | ||
| * dependent. | ||
| * | ||
| * @spec https://www.rfc-editor.org/info/rfc1323 RFC 1323: TCP Extensions for High Performance | ||
| * @see <a href="http://www.ietf.org/rfc/rfc1323.txt">RFC 1323: TCP | ||
| * Extensions for High Performance</a> | ||
|
Comment on lines
153
to
154
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the |
||
| * @see Socket#setReceiveBufferSize | ||
|
|
@@ -179,6 +182,7 @@ private StandardSocketOptions() { } | |
| * after the socket is bound has no effect. The default value of this | ||
| * socket option is system dependent. | ||
| * | ||
| * @spec https://www.rfc-editor.org/info/rfc793 RFC 793: Transmission Control Protocol | ||
| * @see <a href="http://www.ietf.org/rfc/rfc793.txt">RFC 793: Transmission | ||
|
Comment on lines
+185
to
186
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the @see |
||
| * Control Protocol</a> | ||
| * @see ServerSocket#setReuseAddress | ||
|
|
@@ -268,6 +272,8 @@ private StandardSocketOptions() { } | |
| * {@link StandardProtocolFamily#INET6 IPv6} socket, is not defined in this | ||
| * release. | ||
| * | ||
| * @spec https://www.rfc-editor.org/info/rfc1349 RFC 1349: Type of Service in the Internet Protocol Suite | ||
| * @spec https://www.rfc-editor.org/info/rfc2474 RFC 2474: Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers | ||
| * @see DatagramSocket#setTrafficClass | ||
| */ | ||
| public static final SocketOption<Integer> IP_TOS = | ||
|
|
@@ -366,6 +372,7 @@ private StandardSocketOptions() { } | |
| * disabled. If it cannot, then invoking the {@code setOption} method to | ||
| * disable the option has no effect. | ||
| * | ||
| * @spec https://www.rfc-editor.org/info/rfc1122 RFC 1122: Requirements for Internet Hosts - Communication Layers | ||
| * @see <a href="http://www.ietf.org/rfc/rfc1122.txt">RFC 1122: | ||
| * Requirements for Internet Hosts -- Communication Layers</a> | ||
|
Comment on lines
+375
to
377
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the @see |
||
| * @see Socket#setTcpNoDelay | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be removed, as the original link (explaining
U+nnotation) is broken.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@naotoj The edits are driven by a script, using info about existing links in the same doc comment. If you don't think this reference is appropriate, it would be better to either remove the existing link (and I'll regenerate this patch) or else this patch goes through and you fix up both the existing link and the
@spectag afterwards.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either way is fine with me. I will fix it up if you choose the latter.