diff --git a/make/com/sun/nio/sctp/FILES_java.gmk b/make/com/sun/nio/sctp/FILES_java.gmk
index 9d9c1a98e91b7a39322873936f90a2393896e157..725131e7280a882ded08ecf6b155ac15c302bf63 100644
--- a/make/com/sun/nio/sctp/FILES_java.gmk
+++ b/make/com/sun/nio/sctp/FILES_java.gmk
@@ -38,7 +38,7 @@ FILES_java = \
com/sun/nio/sctp/SctpMultiChannel.java \
com/sun/nio/sctp/SctpServerChannel.java \
com/sun/nio/sctp/SctpSocketOption.java \
- com/sun/nio/sctp/SctpStandardSocketOption.java \
+ com/sun/nio/sctp/SctpStandardSocketOptions.java \
com/sun/nio/sctp/SendFailedNotification.java \
com/sun/nio/sctp/ShutdownNotification.java \
\
diff --git a/make/java/nio/FILES_java.gmk b/make/java/nio/FILES_java.gmk
index f50f2fd1efb06f5b2104a9c126df78d1a2c49252..41397cacdc0dd408144108ab0ca7f9c8c7d905ee 100644
--- a/make/java/nio/FILES_java.gmk
+++ b/make/java/nio/FILES_java.gmk
@@ -116,7 +116,7 @@ FILES_src = \
java/nio/file/SimpleFileVisitor.java \
java/nio/file/StandardCopyOption.java \
java/nio/file/StandardOpenOption.java \
- java/nio/file/StandardWatchEventKind.java \
+ java/nio/file/StandardWatchEventKinds.java \
java/nio/file/TempFileHelper.java \
java/nio/file/WatchEvent.java \
java/nio/file/WatchKey.java \
diff --git a/src/share/classes/com/sun/nio/sctp/MessageInfo.java b/src/share/classes/com/sun/nio/sctp/MessageInfo.java
index ca3e13fc47aaacb15613f26e5aeae8b13dcdc20b..b851b77ac4301149303381041eb3a51d037b7c16 100644
--- a/src/share/classes/com/sun/nio/sctp/MessageInfo.java
+++ b/src/share/classes/com/sun/nio/sctp/MessageInfo.java
@@ -179,7 +179,7 @@ public abstract class MessageInfo {
* completely received. For messages being sent {@code true} indicates that
* the message is complete, {@code false} indicates that the message is not
* complete. How the send channel interprets this value depends on the value
- * of its {@link SctpStandardSocketOption#SCTP_EXPLICIT_COMPLETE
+ * of its {@link SctpStandardSocketOptions#SCTP_EXPLICIT_COMPLETE
* SCTP_EXPLICIT_COMPLETE} socket option.
*
* @return {@code true} if, and only if, the message is complete
@@ -192,7 +192,7 @@ public abstract class MessageInfo {
*
For messages being sent {@code true} indicates that
* the message is complete, {@code false} indicates that the message is not
* complete. How the send channel interprets this value depends on the value
- * of its {@link SctpStandardSocketOption#SCTP_EXPLICIT_COMPLETE
+ * of its {@link SctpStandardSocketOptions#SCTP_EXPLICIT_COMPLETE
* SCTP_EXPLICIT_COMPLETE} socket option.
*
* @param complete
diff --git a/src/share/classes/com/sun/nio/sctp/SctpChannel.java b/src/share/classes/com/sun/nio/sctp/SctpChannel.java
index 8e0472ef1fa2b94c05235654b990d669be69205d..d040a7a07ea2af92e4d5cd37f380fd30320b32d2 100644
--- a/src/share/classes/com/sun/nio/sctp/SctpChannel.java
+++ b/src/share/classes/com/sun/nio/sctp/SctpChannel.java
@@ -65,55 +65,55 @@ import java.nio.channels.SelectionKey;
*
*
@@ -651,7 +651,7 @@ public abstract class SctpChannel
* @throws IOException
* If an I/O error occurs
*
- * @see SctpStandardSocketOption
+ * @see SctpStandardSocketOptions
*/
public abstract T getOption(SctpSocketOption name)
throws IOException;
@@ -680,7 +680,7 @@ public abstract class SctpChannel
* @throws IOException
* If an I/O error occurs
*
- * @see SctpStandardSocketOption
+ * @see SctpStandardSocketOptions
*/
public abstract SctpChannel setOption(SctpSocketOption name, T value)
throws IOException;
@@ -731,7 +731,7 @@ public abstract class SctpChannel
* MessageInfo} will return {@code false}, and more invocations of this
* method will be necessary to completely consume the messgae. Only
* one message at a time will be partially delivered in any stream. The
- * socket option {@link SctpStandardSocketOption#SCTP_FRAGMENT_INTERLEAVE
+ * socket option {@link SctpStandardSocketOptions#SCTP_FRAGMENT_INTERLEAVE
* SCTP_FRAGMENT_INTERLEAVE} controls various aspects of what interlacing of
* messages occurs.
*
@@ -804,7 +804,7 @@ public abstract class SctpChannel
* and sufficient room becomes available, then the remaining bytes in the
* given byte buffer are transmitted as a single message. Sending a message
* is atomic unless explicit message completion {@link
- * SctpStandardSocketOption#SCTP_EXPLICIT_COMPLETE SCTP_EXPLICIT_COMPLETE}
+ * SctpStandardSocketOptions#SCTP_EXPLICIT_COMPLETE SCTP_EXPLICIT_COMPLETE}
* socket option is enabled on this channel's socket.
*
*
The message is transferred from the byte buffer as if by a regular
diff --git a/src/share/classes/com/sun/nio/sctp/SctpMultiChannel.java b/src/share/classes/com/sun/nio/sctp/SctpMultiChannel.java
index b2f0378064fb39b06a576bb49583f8afa190ddba..229d18ec039378132233e64252a160a48a795f95 100644
--- a/src/share/classes/com/sun/nio/sctp/SctpMultiChannel.java
+++ b/src/share/classes/com/sun/nio/sctp/SctpMultiChannel.java
@@ -69,55 +69,55 @@ import java.nio.channels.SelectionKey;
*
Linger on close if data is present (when configured in blocking mode
* only)
@@ -450,7 +450,7 @@ public abstract class SctpMultiChannel
* @throws IOException
* If an I/O error occurs
*
- * @see SctpStandardSocketOption
+ * @see SctpStandardSocketOptions
*/
public abstract T getOption(SctpSocketOption name,
Association association)
@@ -489,7 +489,7 @@ public abstract class SctpMultiChannel
* @throws IOException
* If an I/O error occurs
*
- * @see SctpStandardSocketOption
+ * @see SctpStandardSocketOptions
*/
public abstract SctpMultiChannel setOption(SctpSocketOption name,
T value,
@@ -542,7 +542,7 @@ public abstract class SctpMultiChannel
* MessageInfo} will return {@code false}, and more invocations of this
* method will be necessary to completely consume the messgae. Only
* one message at a time will be partially delivered in any stream. The
- * socket option {@link SctpStandardSocketOption#SCTP_FRAGMENT_INTERLEAVE
+ * socket option {@link SctpStandardSocketOptions#SCTP_FRAGMENT_INTERLEAVE
* SCTP_FRAGMENT_INTERLEAVE} controls various aspects of what interlacing of
* messages occurs.
*
@@ -635,14 +635,14 @@ public abstract class SctpMultiChannel
* underlying output buffer, then the remaining bytes in the given byte
* buffer are transmitted as a single message. Sending a message
* is atomic unless explicit message completion {@link
- * SctpStandardSocketOption#SCTP_EXPLICIT_COMPLETE SCTP_EXPLICIT_COMPLETE}
+ * SctpStandardSocketOptions#SCTP_EXPLICIT_COMPLETE SCTP_EXPLICIT_COMPLETE}
* socket option is enabled on this channel's socket.
*
*
If this channel is in non-blocking mode, there is sufficient room
* in the underlying output buffer, and an implicit association setup is
* required, then the remaining bytes in the given byte buffer are
* transmitted as a single message, subject to {@link
- * SctpStandardSocketOption#SCTP_EXPLICIT_COMPLETE SCTP_EXPLICIT_COMPLETE}.
+ * SctpStandardSocketOptions#SCTP_EXPLICIT_COMPLETE SCTP_EXPLICIT_COMPLETE}.
* If for any reason the message cannot
* be delivered an {@link AssociationChangeNotification association
* changed} notification is put on the SCTP stack with its {@code event} parameter set
diff --git a/src/share/classes/com/sun/nio/sctp/SctpServerChannel.java b/src/share/classes/com/sun/nio/sctp/SctpServerChannel.java
index 5c762edfe3585d4bb2cd4dba62b99a9cc92e6d62..3867fc9ca347cc1836d65b22cf31dcad3bbc97ef 100644
--- a/src/share/classes/com/sun/nio/sctp/SctpServerChannel.java
+++ b/src/share/classes/com/sun/nio/sctp/SctpServerChannel.java
@@ -53,7 +53,7 @@ import java.nio.channels.spi.AbstractSelectableChannel;
*
The maximum number of streams requested by the local endpoint during
* association initialization
@@ -360,7 +360,7 @@ public abstract class SctpServerChannel
* @throws IOException
* If an I/O error occurs
*
- * @see SctpStandardSocketOption
+ * @see SctpStandardSocketOptions
*/
public abstract T getOption(SctpSocketOption name) throws IOException;
@@ -388,7 +388,7 @@ public abstract class SctpServerChannel
* @throws IOException
* If an I/O error occurs
*
- * @see SctpStandardSocketOption
+ * @see SctpStandardSocketOptions
*/
public abstract SctpServerChannel setOption(SctpSocketOption name,
T value)
diff --git a/src/share/classes/com/sun/nio/sctp/SctpSocketOption.java b/src/share/classes/com/sun/nio/sctp/SctpSocketOption.java
index 37f954d71207d45f78804d898f0a9a558e6ab0c0..3e60dbfa090e97cd3da22926b5a44e62c4e9b644 100644
--- a/src/share/classes/com/sun/nio/sctp/SctpSocketOption.java
+++ b/src/share/classes/com/sun/nio/sctp/SctpSocketOption.java
@@ -33,6 +33,6 @@ import java.net.SocketOption;
*
* @since 1.7
*
- * @see SctpStandardSocketOption
+ * @see SctpStandardSocketOptions
*/
public interface SctpSocketOption extends SocketOption { }
diff --git a/src/share/classes/com/sun/nio/sctp/SctpStandardSocketOption.java b/src/share/classes/com/sun/nio/sctp/SctpStandardSocketOptions.java
similarity index 97%
rename from src/share/classes/com/sun/nio/sctp/SctpStandardSocketOption.java
rename to src/share/classes/com/sun/nio/sctp/SctpStandardSocketOptions.java
index 47ffa98238a2e49db48696cf26a54c74fe15a5c7..22c5f4a005b2269ac009ca110fdcdacf3630f702 100644
--- a/src/share/classes/com/sun/nio/sctp/SctpStandardSocketOption.java
+++ b/src/share/classes/com/sun/nio/sctp/SctpStandardSocketOptions.java
@@ -34,8 +34,8 @@ import sun.nio.ch.SctpStdSocketOption;
*
* @since 1.7
*/
-public class SctpStandardSocketOption {
- private SctpStandardSocketOption() {}
+public class SctpStandardSocketOptions {
+ private SctpStandardSocketOptions() {}
/**
* Enables or disables message fragmentation.
*
@@ -127,7 +127,7 @@ public class SctpStandardSocketOption {
* association initialization.
*
*
The value of this socket option is an {@link
- * SctpStandardSocketOption.InitMaxStreams InitMaxStreams}, that represents
+ * SctpStandardSocketOptions.InitMaxStreams InitMaxStreams}, that represents
* the maximum number of inbound and outbound streams that an association
* on the channel is prepared to support.
*
@@ -157,9 +157,9 @@ public class SctpStandardSocketOption {
* the endpoints default value.
*/
public static final SctpSocketOption
- SCTP_INIT_MAXSTREAMS =
- new SctpStdSocketOption(
- "SCTP_INIT_MAXSTREAMS", SctpStandardSocketOption.InitMaxStreams.class);
+ SCTP_INIT_MAXSTREAMS =
+ new SctpStdSocketOption(
+ "SCTP_INIT_MAXSTREAMS", SctpStandardSocketOptions.InitMaxStreams.class);
/**
* Enables or disables a Nagle-like algorithm.
@@ -310,7 +310,7 @@ public class SctpStandardSocketOption {
* This class is used to set the maximum number of inbound/outbound streams
* used by the local endpoint during association initialization. An
* instance of this class is used to set the {@link
- * SctpStandardSocketOption#SCTP_INIT_MAXSTREAMS SCTP_INIT_MAXSTREAMS}
+ * SctpStandardSocketOptions#SCTP_INIT_MAXSTREAMS SCTP_INIT_MAXSTREAMS}
* socket option.
*
* @since 1.7
diff --git a/src/share/classes/java/net/SocketOption.java b/src/share/classes/java/net/SocketOption.java
index 65dfe3c5a6b80bedc7afb5f5db51c43917fd429a..d3c5972ee0212b806bc2d3ee887d3a82f4deb029 100644
--- a/src/share/classes/java/net/SocketOption.java
+++ b/src/share/classes/java/net/SocketOption.java
@@ -38,7 +38,7 @@ package java.net;
*
* @since 1.7
*
- * @see StandardSocketOption
+ * @see StandardSocketOptions
*/
public interface SocketOption {
diff --git a/src/share/classes/java/net/StandardSocketOption.java b/src/share/classes/java/net/StandardSocketOptions.java
similarity index 99%
rename from src/share/classes/java/net/StandardSocketOption.java
rename to src/share/classes/java/net/StandardSocketOptions.java
index bc9589689d32e705967336e39b48c420fca3bab5..b9bea8d0ab55b32979eb6cd68519ed063568e346 100644
--- a/src/share/classes/java/net/StandardSocketOption.java
+++ b/src/share/classes/java/net/StandardSocketOptions.java
@@ -38,8 +38,8 @@ package java.net;
* @since 1.7
*/
-public final class StandardSocketOption {
- private StandardSocketOption() { }
+public final class StandardSocketOptions {
+ private StandardSocketOptions() { }
// -- SOL_SOCKET --
diff --git a/src/share/classes/java/nio/channels/AsynchronousServerSocketChannel.java b/src/share/classes/java/nio/channels/AsynchronousServerSocketChannel.java
index c2b74d21c49c0ed42969d248bcc47823afc68af8..1b5a67f3c6d0c6931e384c45e8b37e3ef2c27a56 100644
--- a/src/share/classes/java/nio/channels/AsynchronousServerSocketChannel.java
+++ b/src/share/classes/java/nio/channels/AsynchronousServerSocketChannel.java
@@ -58,11 +58,11 @@ import java.io.IOException;
*
Loopback for Internet Protocol (IP) multicast datagrams
*
diff --git a/src/share/classes/java/nio/channels/MulticastChannel.java b/src/share/classes/java/nio/channels/MulticastChannel.java
index d22f0d5a58ea22f9ebef001532de30ba686e825a..5b61f77ff8ab67f10269f0ad1b6dbd7846e74b2b 100644
--- a/src/share/classes/java/nio/channels/MulticastChannel.java
+++ b/src/share/classes/java/nio/channels/MulticastChannel.java
@@ -30,7 +30,7 @@ import java.net.NetworkInterface;
import java.io.IOException;
import java.net.ProtocolFamily; // javadoc
import java.net.StandardProtocolFamily; // javadoc
-import java.net.StandardSocketOption; // javadoc
+import java.net.StandardSocketOptions; // javadoc
/**
* A network channel that supports Internet Protocol (IP) multicasting.
@@ -93,7 +93,7 @@ import java.net.StandardSocketOption; // javadoc
* a specific address, rather than the wildcard address then it is implementation
* specific if multicast datagrams are received by the socket.
*
- *
The {@link StandardSocketOption#SO_REUSEADDR SO_REUSEADDR} option should be
+ *
The {@link StandardSocketOptions#SO_REUSEADDR SO_REUSEADDR} option should be
* enabled prior to {@link NetworkChannel#bind binding} the socket. This is
* required to allow multiple members of the group to bind to the same
* address.
*
diff --git a/src/share/classes/java/nio/file/Path.java b/src/share/classes/java/nio/file/Path.java
index 69e5086a1e15ecdac8cd356bc63d10b3340c46b7..370c38dbac285e08608d515a35be1560ef0ce6c9 100644
--- a/src/share/classes/java/nio/file/Path.java
+++ b/src/share/classes/java/nio/file/Path.java
@@ -609,11 +609,11 @@ public interface Path
* directory can be watched. The {@code events} parameter is the events to
* register and may contain the following events:
*
{@link StandardWatchEventKinds#ENTRY_MODIFY ENTRY_MODIFY} -
* entry in directory was modified
*
*
@@ -622,7 +622,7 @@ public interface Path
* that locates the directory entry that is created, deleted, or modified.
*
*
The set of events may include additional implementation specific
- * event that are not defined by the enum {@link StandardWatchEventKind}
+ * event that are not defined by the enum {@link StandardWatchEventKinds}
*
*
The {@code modifiers} parameter specifies modifiers that
* qualify how the directory is registered. This release does not define any
diff --git a/src/share/classes/java/nio/file/StandardWatchEventKind.java b/src/share/classes/java/nio/file/StandardWatchEventKinds.java
similarity index 94%
rename from src/share/classes/java/nio/file/StandardWatchEventKind.java
rename to src/share/classes/java/nio/file/StandardWatchEventKinds.java
index 6064d75a7fa0d335c9138736e7a323359164dfd8..ef111e2bf7d15b439ac6c6d9c6a471ca0f0a56af 100644
--- a/src/share/classes/java/nio/file/StandardWatchEventKind.java
+++ b/src/share/classes/java/nio/file/StandardWatchEventKinds.java
@@ -31,8 +31,8 @@ package java.nio.file;
* @since 1.7
*/
-public final class StandardWatchEventKind {
- private StandardWatchEventKind() { }
+public final class StandardWatchEventKinds {
+ private StandardWatchEventKinds() { }
/**
* A special event to indicate that events may have been lost or
@@ -44,8 +44,8 @@ public final class StandardWatchEventKind {
*
* @see WatchService
*/
- public static final WatchEvent.Kind OVERFLOW =
- new StdWatchEventKind("OVERFLOW", Void.class);
+ public static final WatchEvent.Kind