From 69b1fb5c35b1834acac862a56b90c79ca449c86d Mon Sep 17 00:00:00 2001
From: alanb This method is equivalent to the expression:
- *
*
* @author Xueming Shen
* @since 1.6
diff --git a/src/share/classes/java/io/PipedInputStream.java b/src/share/classes/java/io/PipedInputStream.java
index ca2115430..4ad8fbd81 100644
--- a/src/share/classes/java/io/PipedInputStream.java
+++ b/src/share/classes/java/io/PipedInputStream.java
@@ -117,7 +117,7 @@ public class PipedInputStream extends InputStream {
* @param src the stream to connect to.
* @param pipeSize the size of the pipe's buffer.
* @exception IOException if an I/O error occurs.
- * @exception IllegalArgumentException if
+ *
+ * }{@code
* Console cons;
* char[] passwd;
* if ((cons = System.console()) != null &&
@@ -83,7 +83,7 @@ import sun.nio.cs.StreamEncoder;
* ...
* java.util.Arrays.fill(passwd, ' ');
* }
- * pipeSize <= 0.
+ * @exception IllegalArgumentException if {@code pipeSize <= 0}.
* @since 1.6
*/
public PipedInputStream(PipedOutputStream src, int pipeSize)
@@ -147,7 +147,7 @@ public class PipedInputStream extends InputStream {
* connected} to a PipedOutputStream before being used.
*
* @param pipeSize the size of the pipe's buffer.
- * @exception IllegalArgumentException if pipeSize <= 0.
+ * @exception IllegalArgumentException if {@code pipeSize <= 0}.
* @since 1.6
*/
public PipedInputStream(int pipeSize) {
diff --git a/src/share/classes/java/io/PipedReader.java b/src/share/classes/java/io/PipedReader.java
index 95cfe1d7b..bb86022af 100644
--- a/src/share/classes/java/io/PipedReader.java
+++ b/src/share/classes/java/io/PipedReader.java
@@ -91,7 +91,7 @@ public class PipedReader extends Reader {
* @param src the stream to connect to.
* @param pipeSize the size of the pipe's buffer.
* @exception IOException if an I/O error occurs.
- * @exception IllegalArgumentException if pipeSize <= 0.
+ * @exception IllegalArgumentException if {@code pipeSize <= 0}.
* @since 1.6
*/
public PipedReader(PipedWriter src, int pipeSize) throws IOException {
@@ -120,7 +120,7 @@ public class PipedReader extends Reader {
* before being used.
*
* @param pipeSize the size of the pipe's buffer.
- * @exception IllegalArgumentException if pipeSize <= 0.
+ * @exception IllegalArgumentException if {@code pipeSize <= 0}.
* @since 1.6
*/
public PipedReader(int pipeSize) {
diff --git a/src/share/classes/java/io/PrintStream.java b/src/share/classes/java/io/PrintStream.java
index c4cd01f47..b803c6a65 100644
--- a/src/share/classes/java/io/PrintStream.java
+++ b/src/share/classes/java/io/PrintStream.java
@@ -851,7 +851,7 @@ public class PrintStream extends FilterOutputStream
* null argument depends on the conversion.
*
- * @throws IllegalFormatException
+ * @throws java.util.IllegalFormatException
* If a format string contains an illegal syntax, a format
* specifier that is incompatible with the given arguments,
* insufficient arguments given the format string, or other
@@ -901,7 +901,7 @@ public class PrintStream extends FilterOutputStream
* null argument depends on the conversion.
*
- * @throws IllegalFormatException
+ * @throws java.util.IllegalFormatException
* If a format string contains an illegal syntax, a format
* specifier that is incompatible with the given arguments,
* insufficient arguments given the format string, or other
@@ -944,7 +944,7 @@ public class PrintStream extends FilterOutputStream
* null argument depends on the conversion.
*
- * @throws IllegalFormatException
+ * @throws java.util.IllegalFormatException
* If a format string contains an illegal syntax, a format
* specifier that is incompatible with the given arguments,
* insufficient arguments given the format string, or other
@@ -1001,7 +1001,7 @@ public class PrintStream extends FilterOutputStream
* null argument depends on the conversion.
*
- * @throws IllegalFormatException
+ * @throws java.util.IllegalFormatException
* If a format string contains an illegal syntax, a format
* specifier that is incompatible with the given arguments,
* insufficient arguments given the format string, or other
diff --git a/src/share/classes/java/io/PushbackInputStream.java b/src/share/classes/java/io/PushbackInputStream.java
index af0b525a6..b81bec424 100644
--- a/src/share/classes/java/io/PushbackInputStream.java
+++ b/src/share/classes/java/io/PushbackInputStream.java
@@ -85,7 +85,7 @@ class PushbackInputStream extends FilterInputStream {
*
* @param in the input stream from which bytes will be read.
* @param size the size of the pushback buffer.
- * @exception IllegalArgumentException if size is <= 0
+ * @exception IllegalArgumentException if {@code size <= 0}
* @since JDK1.1
*/
public PushbackInputStream(InputStream in, int size) {
diff --git a/src/share/classes/java/io/PushbackReader.java b/src/share/classes/java/io/PushbackReader.java
index 2f5b18cfe..98ebd5dab 100644
--- a/src/share/classes/java/io/PushbackReader.java
+++ b/src/share/classes/java/io/PushbackReader.java
@@ -47,7 +47,7 @@ public class PushbackReader extends FilterReader {
*
* @param in The reader from which characters will be read
* @param size The size of the pushback buffer
- * @exception IllegalArgumentException if size is <= 0
+ * @exception IllegalArgumentException if {@code size <= 0}
*/
public PushbackReader(Reader in, int size) {
super(in);
diff --git a/src/share/classes/java/io/StringReader.java b/src/share/classes/java/io/StringReader.java
index 3778408e5..0cdf8fd21 100644
--- a/src/share/classes/java/io/StringReader.java
+++ b/src/share/classes/java/io/StringReader.java
@@ -163,7 +163,7 @@ public class StringReader extends Reader {
* is no actual limit, so this argument must not
* be negative, but is otherwise ignored.
*
- * @exception IllegalArgumentException If readAheadLimit is < 0
+ * @exception IllegalArgumentException If {@code readAheadLimit < 0}
* @exception IOException If an I/O error occurs
*/
public void mark(int readAheadLimit) throws IOException {
diff --git a/src/share/classes/java/lang/Character.java b/src/share/classes/java/lang/Character.java
index 531263d38..e512e5826 100644
--- a/src/share/classes/java/lang/Character.java
+++ b/src/share/classes/java/lang/Character.java
@@ -4782,9 +4782,9 @@ class Character implements java.io.Serializable, Comparable
*
* @param high the high-surrogate code value to be tested
* @param low the low-surrogate code value to be tested
diff --git a/src/share/classes/java/lang/ClassLoader.java b/src/share/classes/java/lang/ClassLoader.java
index 8d0205f54..f26eafd98 100644
--- a/src/share/classes/java/lang/ClassLoader.java
+++ b/src/share/classes/java/lang/ClassLoader.java
@@ -702,7 +702,7 @@ public abstract class ClassLoader {
* bootstrap class loader. If name is not null, it
* must be equal to the binary name of the class
* specified by the byte array "b", otherwise a {@link
- * NoClassDefFoundError} will be thrown.
+ *
+ * }{@code
* isHighSurrogate(high) && isLowSurrogate(low)
- *
*
* For example, if one adds two keys a and b such that
- * (!a.equals(b) && a.compareTo(b) == 0) to a sorted
+ * {@code (!a.equals(b) && a.compareTo(b) == 0)} to a sorted
* set that does not use an explicit comparator, the second add
* operation returns false (and the size of the sorted set does not increase)
* because a and b are equivalent from the sorted set's
diff --git a/src/share/classes/java/lang/Double.java b/src/share/classes/java/lang/Double.java
index a32d04cf7..3f0e2cddd 100644
--- a/src/share/classes/java/lang/Double.java
+++ b/src/share/classes/java/lang/Double.java
@@ -917,13 +917,13 @@ public final class Double extends Number implements Comparable In all other cases, let s, e, and m be three
* values that can be computed from the argument:
*
- * In all other cases, let s, e, and m be three
* values that can be computed from the argument:
*
- *
* Here are some simple examples of array-spreading method handles:
- *
* Here are some examples of array-collecting method handles:
- *
* Here is an example, of a list-making variable arity method handle:
- *
* Discussion:
* These rules are designed as a dynamically-typed variation
@@ -1134,7 +1134,7 @@ assertEquals("[three, thee, tee]", Arrays.toString((Object[])ls.get(0)));
* a previous argument to {@code asVarargsCollector}.
*
* Here is an example, of a list-making variable arity method handle:
- *
* MBeanServer access: The HTTP cookie management in java.net package looks like:
* See RFC 2965 sec. 3.3 & 7 for more detail.
+ * See RFC 2965 sec. 3.3 and 7 for more detail.
*
* @author Edward Wang
* @since 1.6
diff --git a/src/share/classes/java/net/DatagramSocket.java b/src/share/classes/java/net/DatagramSocket.java
index ad0af4850..d6ffca237 100644
--- a/src/share/classes/java/net/DatagramSocket.java
+++ b/src/share/classes/java/net/DatagramSocket.java
@@ -334,12 +334,12 @@ class DatagramSocket implements java.io.Closeable {
}
/**
- * Binds this DatagramSocket to a specific address & port.
+ * Binds this DatagramSocket to a specific address and port.
*
* If the address is
- * @param addr The address & port to bind to.
+ * @param addr The address and port to bind to.
* @throws SocketException if any error happens during the bind, or if the
* socket is already bound.
* @throws SecurityException if a security manager exists and its
@@ -844,7 +844,7 @@ class DatagramSocket implements java.io.Closeable {
* a java.net.SocketTimeoutException is raised, though the
* DatagramSocket is still valid. The option must be enabled
* prior to entering the blocking operation to have effect. The
- * timeout must be > 0.
+ * timeout must be {@code > 0}.
* A timeout of zero is interpreted as an infinite timeout.
*
* @param timeout the specified timeout in milliseconds.
@@ -1101,8 +1101,8 @@ class DatagramSocket implements java.io.Closeable {
* As the underlying network implementation may ignore this
* value applications should consider it a hint.
*
- * The tc must be in the range The tc must be in the range {@code 0 <= tc <=
+ * 255} or an IllegalArgumentException will be thrown.
* Notes:
* For Internet Protocol v4 the value consists of an
* The ttl is an unsigned 8-bit quantity, and so must be
- * in the range
- * @param endpoint The IP address & port number to bind to.
+ * @param endpoint The IP address and port number to bind to.
* @throws IOException if the bind operation fails, or if the socket
* is already bound.
* @throws SecurityException if a The tc must be in the range The tc must be in the range {@code 0 <= tc <=
+ * 255} or an IllegalArgumentException will be thrown.
* Notes:
* For Internet Protocol v4 the value consists of an
* The value of this socket option is an {@code Integer} in the range
- * 0 <= value <= 255. It is used to control
- * the scope of multicast datagrams sent by the datagram-oriented socket.
+ * {@code 0 <= value <= 255}. It is used to control the scope of multicast
+ * datagrams sent by the datagram-oriented socket.
* In the case of an {@link StandardProtocolFamily#INET IPv4} socket
* the option is the time-to-live (TTL) on multicast datagrams sent by the
* socket. Datagrams with a TTL of zero are not transmitted on the network
diff --git a/src/share/classes/java/net/URI.java b/src/share/classes/java/net/URI.java
index b4b22ded1..ed90f090c 100644
--- a/src/share/classes/java/net/URI.java
+++ b/src/share/classes/java/net/URI.java
@@ -258,7 +258,7 @@ import java.lang.NullPointerException; // for javadoc
*
*
* Then the floating-point result equals the value of the mathematical
* expression s·m·2e-1075.
diff --git a/src/share/classes/java/lang/Float.java b/src/share/classes/java/lang/Float.java
index 5b077111f..e46dff02a 100644
--- a/src/share/classes/java/lang/Float.java
+++ b/src/share/classes/java/lang/Float.java
@@ -821,13 +821,13 @@ public final class Float extends Number implements Comparable
- * int s = ((bits >> 63) == 0) ? 1 : -1;
- * int e = (int)((bits >> 52) & 0x7ffL);
+ *
+ * }{@code
+ * int s = ((bits >> 63) == 0) ? 1 : -1;
+ * int e = (int)((bits >> 52) & 0x7ffL);
* long m = (e == 0) ?
- * (bits & 0xfffffffffffffL) << 1 :
+ * (bits & 0xfffffffffffffL) << 1 :
* (bits & 0xfffffffffffffL) | 0x10000000000000L;
- *
*
* Then the floating-point result equals the value of the mathematical
* expression s·m·2e-150.
diff --git a/src/share/classes/java/lang/StackTraceElement.java b/src/share/classes/java/lang/StackTraceElement.java
index b973d0f42..4543749bb 100644
--- a/src/share/classes/java/lang/StackTraceElement.java
+++ b/src/share/classes/java/lang/StackTraceElement.java
@@ -181,12 +181,12 @@ public final class StackTraceElement implements java.io.Serializable {
* {@code StackTraceElement} instance representing the same execution
* point as this instance. Two stack trace elements {@code a} and
* {@code b} are equal if and only if:
- *
- * int s = ((bits >> 31) == 0) ? 1 : -1;
- * int e = ((bits >> 23) & 0xff);
+ *
+ * }{@code
+ * int s = ((bits >> 31) == 0) ? 1 : -1;
+ * int e = ((bits >> 23) & 0xff);
* int m = (e == 0) ?
- * (bits & 0x7fffff) << 1 :
+ * (bits & 0x7fffff) << 1 :
* (bits & 0x7fffff) | 0x800000;
- *
+ *
* where {@code equals} has the semantics of {@link
* java.util.Objects#equals(Object, Object) Objects.equals}.
*
diff --git a/src/share/classes/java/lang/instrument/Instrumentation.java b/src/share/classes/java/lang/instrument/Instrumentation.java
index 3d2083d6c..1844837fd 100644
--- a/src/share/classes/java/lang/instrument/Instrumentation.java
+++ b/src/share/classes/java/lang/instrument/Instrumentation.java
@@ -593,24 +593,28 @@ public interface Instrumentation {
* and the normal automatic resolution. For
* {@code
* equals(a.getFileName(), b.getFileName()) &&
* a.getLineNumber() == b.getLineNumber()) &&
* equals(a.getClassName(), b.getClassName()) &&
* equals(a.getMethodName(), b.getMethodName())
- *
+ * }RegisterNatives, the JVM will attempt this
* association:
- *
- * method(foo) -> nativeImplementation(foo)
+ * {@code
+ * method(foo) -> nativeImplementation(foo)
+ * }
*
* When this fails, the resolution will be retried with
* the specified prefix prepended to the method name,
* yielding the correct resolution:
- *
- * method(wrapped_foo) -> nativeImplementation(foo)
+ * {@code
+ * method(wrapped_foo) -> nativeImplementation(foo)
+ * }
*
* For automatic resolution, the JVM will attempt:
- *
- * method(wrapped_foo) -> nativeImplementation(wrapped_foo)
+ * {@code
+ * method(wrapped_foo) -> nativeImplementation(wrapped_foo)
+ * }
*
* When this fails, the resolution will be retried with
* the specified prefix deleted from the implementation name,
* yielding the correct resolution:
- *
- * method(wrapped_foo) -> nativeImplementation(foo)
+ * {@code
+ * method(wrapped_foo) -> nativeImplementation(foo)
+ * }
*
* Note that since the prefix is only used when standard
* resolution fails, native methods can be wrapped selectively.
diff --git a/src/share/classes/java/lang/invoke/MethodHandle.java b/src/share/classes/java/lang/invoke/MethodHandle.java
index 774faff5a..06084056f 100644
--- a/src/share/classes/java/lang/invoke/MethodHandle.java
+++ b/src/share/classes/java/lang/invoke/MethodHandle.java
@@ -251,7 +251,7 @@ import java.util.logging.Logger;
*
* Usage examples
* Here are some examples of usage:
- *
* Each of the above calls to {@code invokeExact} or plain {@code invoke}
* generates a single invokevirtual instruction with
* the symbolic type descriptor indicated in the following comment.
@@ -754,7 +754,7 @@ public abstract class MethodHandle {
* (The array may also be null when zero elements are required.)
*
+ *
+ * }{@code
Object x, y; String s; int i;
MethodType mt; MethodHandle mh;
MethodHandles.Lookup lookup = MethodHandles.lookup();
@@ -287,7 +287,7 @@ mt = MethodType.methodType(void.class, String.class);
mh = lookup.findVirtual(java.io.PrintStream.class, "println", mt);
mh.invokeExact(System.out, "Hello, world.");
// invokeExact(Ljava/io/PrintStream;Ljava/lang/String;)V
- *
* @param arrayType usually {@code Object[]}, the type of the array argument from which to extract the spread arguments
* @param arrayLength the number of arguments to spread from an incoming array argument
* @return a new method handle which spreads its final array argument,
@@ -878,7 +878,7 @@ assertEquals("[A, B, C]", (String) caToString2.invokeExact('A', "BC".toCharArray
* number of collected arguments, use {@link #asVarargsCollector asVarargsCollector} instead.
*
+ *
+ * }{@code
MethodHandle equals = publicLookup()
.findVirtual(String.class, "equals", methodType(boolean.class, Object.class));
assert( (boolean) equals.invokeExact("me", (Object)"me"));
@@ -790,7 +790,7 @@ MethodHandle caString3 = caToString.asCollector(char[].class, 3);
assertEquals("[A, B, C]", (String) caString3.invokeExact('A', 'B', 'C'));
MethodHandle caToString2 = caString3.asSpreader(char[].class, 2);
assertEquals("[A, B, C]", (String) caToString2.invokeExact('A', "BC".toCharArray()));
- *
* @param arrayType often {@code Object[]}, the type of the array argument which will collect the arguments
* @param arrayLength the number of arguments to collect into a new array argument
* @return a new method handle which collects some trailing argument
@@ -1041,7 +1041,7 @@ assertEquals("[123]", (String) longsToString.invokeExact((long)123));
* It may (or may not) return the original variable arity method handle.
*
+ *
+ * }{@code
MethodHandle deepToString = publicLookup()
.findStatic(Arrays.class, "deepToString", methodType(String.class, Object[].class));
assertEquals("[won]", (String) deepToString.invokeExact(new Object[]{"won"}));
@@ -904,7 +904,7 @@ MethodHandle longsToString = publicLookup()
.findStatic(Arrays.class, "toString", methodType(String.class, long[].class))
.asCollector(long[].class, 1);
assertEquals("[123]", (String) longsToString.invokeExact((long)123));
- *
*
+ *
+ * }{@code
MethodHandle deepToString = publicLookup()
.findStatic(Arrays.class, "deepToString", methodType(String.class, Object[].class));
MethodHandle ts1 = deepToString.asVarargsCollector(Object[].class);
@@ -1063,7 +1063,7 @@ assertEquals("[three, thee, tee]", asList.invoke((Object[])argv).toString());
List ls = (List) asList.invoke((Object)argv);
assertEquals(1, ls.size());
assertEquals("[three, thee, tee]", Arrays.toString((Object[])ls.get(0)));
- *
*
* @return a new method handle which accepts only a fixed number of arguments
* @see #asVarargsCollector
diff --git a/src/share/classes/java/lang/invoke/MethodHandles.java b/src/share/classes/java/lang/invoke/MethodHandles.java
index fa3cb6078..9c54f3cf7 100644
--- a/src/share/classes/java/lang/invoke/MethodHandles.java
+++ b/src/share/classes/java/lang/invoke/MethodHandles.java
@@ -1593,7 +1593,7 @@ publicLookup().findVirtual(MethodHandle.class, "invoke", type)
* As in the case of {@link #dropArguments(MethodHandle,int,List) dropArguments},
* incoming arguments which are not mentioned in the reordering array
* are may be any type, as determined only by {@code newType}.
- *
+ *
+ * }{@code
MethodHandle asListVar = publicLookup()
.findStatic(Arrays.class, "asList", methodType(List.class, Object[].class))
.asVarargsCollector(Object[].class);
@@ -1153,7 +1153,7 @@ assertEquals("[three, thee, tee]", asListVar.invoke(argv).toString());
assertEquals("[three, thee, tee]", asListFix.invoke(argv).toString());
assertEquals(1, ((List) asListVar.invoke((Object)argv)).size());
assertEquals("[three, thee, tee]", asListFix.invoke((Object)argv).toString());
- *
* @param target the method handle to invoke after arguments are reordered
* @param newType the expected type of the new method handle
* @param reorder an index array which controls the reordering
diff --git a/src/share/classes/java/lang/management/MemoryUsage.java b/src/share/classes/java/lang/management/MemoryUsage.java
index c223c7107..4dc23c0fe 100644
--- a/src/share/classes/java/lang/management/MemoryUsage.java
+++ b/src/share/classes/java/lang/management/MemoryUsage.java
@@ -72,8 +72,8 @@ import sun.management.MemoryUsageCompositeData;
* The amount of used and committed memory will always be less than
* or equal to max if max is defined.
* A memory allocation may fail if it attempts to increase the
- * used memory such that used > committed even
- * if used <= max would still be true (for example,
+ * used memory such that used > committed even
+ * if used <= max would still be true (for example,
* when the system is low on virtual memory).
*
*
diff --git a/src/share/classes/java/lang/management/RuntimeMXBean.java b/src/share/classes/java/lang/management/RuntimeMXBean.java
index 62463af44..e4142d3e4 100644
--- a/src/share/classes/java/lang/management/RuntimeMXBean.java
+++ b/src/share/classes/java/lang/management/RuntimeMXBean.java
@@ -308,7 +308,7 @@ public interface RuntimeMXBean extends PlatformManagedObject {
*
*
+ *
+ * }{@code
import static java.lang.invoke.MethodHandles.*;
import static java.lang.invoke.MethodType.*;
...
@@ -1609,7 +1609,7 @@ assert(add.type().equals(intfn2));
MethodHandle twice = permuteArguments(add, intfn1, 0, 0);
assert(twice.type().equals(intfn1));
assert((int)twice.invokeExact(21) == 42);
- *
- * The mapped type of Map
diff --git a/src/share/classes/java/lang/management/ThreadMXBean.java b/src/share/classes/java/lang/management/ThreadMXBean.java
index f804af194..30251d51f 100644
--- a/src/share/classes/java/lang/management/ThreadMXBean.java
+++ b/src/share/classes/java/lang/management/ThreadMXBean.java
@@ -198,7 +198,7 @@ public interface ThreadMXBean extends PlatformManagedObject {
* null if the thread of the given ID is not alive or
* it does not exist.
*
- * @throws IllegalArgumentException if id <= 0.
+ * @throws IllegalArgumentException if {@code id <= 0}.
* @throws java.lang.SecurityException if a security manager
* exists and the caller does not have
* ManagementPermission("monitor").
@@ -236,7 +236,7 @@ public interface ThreadMXBean extends PlatformManagedObject {
* with no stack trace, no locked monitor and no synchronizer info.
*
* @throws IllegalArgumentException if any element in the input array
- * ids is <= 0.
+ * ids is {@code <= 0}.
* @throws java.lang.SecurityException if a security manager
* exists and the caller does not have
* ManagementPermission("monitor").
@@ -282,7 +282,7 @@ public interface ThreadMXBean extends PlatformManagedObject {
* null if the thread of the given ID is not alive or
* it does not exist.
*
- * @throws IllegalArgumentException if id <= 0.
+ * @throws IllegalArgumentException if {@code id <= 0}.
* @throws IllegalArgumentException if maxDepth is negative.
* @throws java.lang.SecurityException if a security manager
* exists and the caller does not have
@@ -336,7 +336,7 @@ public interface ThreadMXBean extends PlatformManagedObject {
*
* @throws IllegalArgumentException if maxDepth is negative.
* @throws IllegalArgumentException if any element in the input array
- * ids is <= 0.
+ * ids is {@code <= 0}.
* @throws java.lang.SecurityException if a security manager
* exists and the caller does not have
* ManagementPermission("monitor").
@@ -466,7 +466,7 @@ public interface ThreadMXBean extends PlatformManagedObject {
* and CPU time measurement is enabled;
* -1 otherwise.
*
- * @throws IllegalArgumentException if id <= 0 .
+ * @throws IllegalArgumentException if {@code id <= 0}.
* @throws java.lang.UnsupportedOperationException if the Java
* virtual machine does not support CPU time measurement for
* other threads.
@@ -501,7 +501,7 @@ public interface ThreadMXBean extends PlatformManagedObject {
* and CPU time measurement is enabled;
* -1 otherwise.
*
- * @throws IllegalArgumentException if id <= 0 .
+ * @throws IllegalArgumentException if {@code id <= 0}.
* @throws java.lang.UnsupportedOperationException if the Java
* virtual machine does not support CPU time measurement for
* other threads.
diff --git a/src/share/classes/java/net/CookieManager.java b/src/share/classes/java/net/CookieManager.java
index 90c7262b4..fde828f95 100644
--- a/src/share/classes/java/net/CookieManager.java
+++ b/src/share/classes/java/net/CookieManager.java
@@ -41,7 +41,7 @@ import sun.util.logging.PlatformLogger;
*
*
- *
+ *
* {@code
* use
* CookieHandler <------- HttpURLConnection
* ^
@@ -58,7 +58,7 @@ import sun.util.logging.PlatformLogger;
* | impl
* |
* Internal in-memory implementation
- *
+ * }
*
null, then the system will pick up
* an ephemeral port and a valid local address to bind the socket.
* 0 <= tc <=
- * 255 or an IllegalArgumentException will be thrown.
+ * integer, the least significant 8 bits of which
diff --git a/src/share/classes/java/net/HttpURLConnection.java b/src/share/classes/java/net/HttpURLConnection.java
index 193b9cef1..b93f1e731 100644
--- a/src/share/classes/java/net/HttpURLConnection.java
+++ b/src/share/classes/java/net/HttpURLConnection.java
@@ -109,7 +109,7 @@ abstract public class HttpURLConnection extends URLConnection {
* server. In this case, {@link #getHeaderField(int) getHeaderField(0)} returns the status
* line, but getHeaderFieldKey(0) returns null.
*
- * @param n an index, where n >=0.
+ * @param n an index, where {@code n >=0}.
* @return the key for the nth header field,
* or null if the key does not exist.
*/
@@ -260,7 +260,7 @@ abstract public class HttpURLConnection extends URLConnection {
* {@link #getHeaderFieldKey getHeaderFieldKey} method to iterate through all
* the headers in the message.
*
- * @param n an index, where n>=0.
+ * @param n an index, where {@code n>=0}.
* @return the value of the nth header field,
* or null if the value does not exist.
* @see java.net.HttpURLConnection#getHeaderFieldKey(int)
diff --git a/src/share/classes/java/net/InetSocketAddress.java b/src/share/classes/java/net/InetSocketAddress.java
index 4ad950434..44604c664 100644
--- a/src/share/classes/java/net/InetSocketAddress.java
+++ b/src/share/classes/java/net/InetSocketAddress.java
@@ -389,7 +389,7 @@ public class InetSocketAddress
* Two instances of InetSocketAddress represent the same
* address if both the InetAddresses (or hostnames if it is unresolved) and port
* numbers are equal.
- * If both addresses are unresolved, then the hostname & the port number
+ * If both addresses are unresolved, then the hostname and the port number
* are compared.
*
* Note: Hostnames are case insensitive. e.g. "FooBar" and "foobar" are
diff --git a/src/share/classes/java/net/MulticastSocket.java b/src/share/classes/java/net/MulticastSocket.java
index ad4c7566a..0a4d7c102 100644
--- a/src/share/classes/java/net/MulticastSocket.java
+++ b/src/share/classes/java/net/MulticastSocket.java
@@ -201,7 +201,7 @@ class MulticastSocket extends DatagramSocket {
* scope of the multicasts.
*
* 0 <= ttl <= 0xFF .
+ * in the range {@code 0 <= ttl <= 0xFF }.
*
* @param ttl the time-to-live
* @exception IOException if an I/O exception occurs
diff --git a/src/share/classes/java/net/ServerSocket.java b/src/share/classes/java/net/ServerSocket.java
index b47e4420e..52600bff6 100644
--- a/src/share/classes/java/net/ServerSocket.java
+++ b/src/share/classes/java/net/ServerSocket.java
@@ -316,7 +316,7 @@ class ServerSocket implements java.io.Closeable {
* If the address is null, then the system will pick up
* an ephemeral port and a valid local address to bind the socket.
* SecurityManager is present and
@@ -343,7 +343,7 @@ class ServerSocket implements java.io.Closeable {
* or may choose to ignore the parameter altogther. The value provided
* should be greater than 0. If it is less than or equal to
* 0, then an implementation specific default will be used.
- * @param endpoint The IP address & port number to bind to.
+ * @param endpoint The IP address and port number to bind to.
* @param backlog requested maximum length of the queue of
* incoming connections.
* @throws IOException if the bind operation fails, or if the socket
@@ -614,7 +614,7 @@ class ServerSocket implements java.io.Closeable {
* a java.net.SocketTimeoutException is raised, though the
* ServerSocket is still valid. The option must be enabled
* prior to entering the blocking operation to have effect. The
- * timeout must be > 0.
+ * timeout must be {@code > 0}.
* A timeout of zero is interpreted as an infinite timeout.
* @param timeout the specified timeout, in milliseconds
* @exception SocketException if there is an error in
diff --git a/src/share/classes/java/net/Socket.java b/src/share/classes/java/net/Socket.java
index e0635c1bf..08b7ae616 100644
--- a/src/share/classes/java/net/Socket.java
+++ b/src/share/classes/java/net/Socket.java
@@ -1086,7 +1086,7 @@ class Socket implements java.io.Closeable {
* expires, a java.net.SocketTimeoutException is raised, though the
* Socket is still valid. The option must be enabled
* prior to entering the blocking operation to have effect. The
- * timeout must be > 0.
+ * timeout must be {@code > 0}.
* A timeout of zero is interpreted as an infinite timeout.
*
* @param timeout the specified timeout, in milliseconds.
@@ -1295,8 +1295,8 @@ class Socket implements java.io.Closeable {
* As the underlying network implementation may ignore this
* value applications should consider it a hint.
*
- * 0 <= tc <=
- * 255 or an IllegalArgumentException will be thrown.
+ * integer, the least significant 8 bits of which
diff --git a/src/share/classes/java/net/StandardSocketOptions.java b/src/share/classes/java/net/StandardSocketOptions.java
index 9aeed2b5a..84fedd804 100644
--- a/src/share/classes/java/net/StandardSocketOptions.java
+++ b/src/share/classes/java/net/StandardSocketOptions.java
@@ -277,8 +277,8 @@ public final class StandardSocketOptions {
* The time-to-live for Internet Protocol (IP) multicast datagrams.
*
* All alphanum characters together with those in the string
* "_-!.~'()*"
*
+ * punct
- * The characters in the string ",;:$&+=" The characters in the string ",;:$&+="
*
diff --git a/src/share/classes/java/net/URLConnection.java b/src/share/classes/java/net/URLConnection.java
index f1c518807..b69c00f94 100644
--- a/src/share/classes/java/net/URLConnection.java
+++ b/src/share/classes/java/net/URLConnection.java
@@ -662,7 +662,7 @@ public abstract class URLConnection {
* Returns the key for the reserved
* All punct characters together with those in the string
* "?/[]@" nth header field.
* It returns null if there are fewer than n+1 fields.
*
- * @param n an index, where n>=0
+ * @param n an index, where {@code n>=0}
* @return the key for the nth header field,
* or null if there are fewer than n+1
* fields.
@@ -680,7 +680,7 @@ public abstract class URLConnection {
* {@link #getHeaderFieldKey(int) getHeaderFieldKey} method to iterate through all
* the headers in the message.
*
- * @param n an index, where n>=0
+ * @param n an index, where {@code n>=0}
* @return the value of the nth header field
* or null if there are fewer than n+1 fields
* @see java.net.URLConnection#getHeaderFieldKey(int)
diff --git a/src/share/classes/java/nio/X-Buffer.java.template b/src/share/classes/java/nio/X-Buffer.java.template
index 475818d30..738b18b51 100644
--- a/src/share/classes/java/nio/X-Buffer.java.template
+++ b/src/share/classes/java/nio/X-Buffer.java.template
@@ -652,9 +652,10 @@ public abstract class $Type$Buffer
* src.get(dst, off, len) has exactly the same effect as
* the loop
*
- *
+ *
*
* except that it first checks that there are sufficient $type$s in
* this buffer and it is potentially much more efficient. {@code
* for (int i = off; i < off + len; i++)
- * dst[i] = src.get();
+ * dst[i] = src.get():
+ * }
+ *
*
* except that it first checks that there is sufficient space in this
* buffer and it is potentially much more efficient. {@code
* for (int i = off; i < off + len; i++)
- * dst.put(a[i]);
+ * dst.put(a[i]);
+ * }
+ * {@code
* for (int i = start; i < end; i++)
- * dst.put(src.charAt(i));
+ * dst.put(src.charAt(i));
+ * }
*
* except that it first checks that there is sufficient space in this
* buffer and it is potentially much more efficient.
@@ -1038,12 +1041,13 @@ public abstract class $Type$Buffer
* write was incomplete. The following loop, for example, copies bytes
* from one channel to another via the buffer buf:
*
- *
- * buf.clear(); // Prepare buffer for use
- * while (in.read(buf) >= 0 || buf.position != 0) {
- * buf.flip();
- * out.write(buf);
- * buf.compact(); // In case of partial write
+ * {@code
+ * buf.clear(); // Prepare buffer for use
+ * while (in.read(buf) >= 0 || buf.position != 0) {
+ * buf.flip();
+ * out.write(buf);
+ * buf.compact(); // In case of partial write
+ * }
* }
*
#end[byte]
diff --git a/src/share/classes/java/nio/channels/SelectableChannel.java b/src/share/classes/java/nio/channels/SelectableChannel.java
index 8b7c71257..35569e86e 100644
--- a/src/share/classes/java/nio/channels/SelectableChannel.java
+++ b/src/share/classes/java/nio/channels/SelectableChannel.java
@@ -208,7 +208,7 @@ public abstract class SelectableChannel
* @throws IllegalArgumentException
* If a bit in the ops set does not correspond to an
* operation that is supported by this channel, that is, if
- * set & ~validOps() != 0
+ * {@code set & ~validOps() != 0}
*
* @return A key representing the registration of this channel with
* the given selector
@@ -265,8 +265,8 @@ public abstract class SelectableChannel
*
* @throws IllegalArgumentException
* If a bit in ops does not correspond to an operation
- * that is supported by this channel, that is, if set &
- * ~validOps() != 0
+ * that is supported by this channel, that is, if {@code set &
+ * ~validOps() != 0}
*
* @return A key representing the registration of this channel with
* the given selector
diff --git a/src/share/classes/java/nio/channels/SelectionKey.java b/src/share/classes/java/nio/channels/SelectionKey.java
index ee339db09..2280cb9e2 100644
--- a/src/share/classes/java/nio/channels/SelectionKey.java
+++ b/src/share/classes/java/nio/channels/SelectionKey.java
@@ -191,7 +191,7 @@ public abstract class SelectionKey {
* @throws IllegalArgumentException
* If a bit in the set does not correspond to an operation that
* is supported by this key's channel, that is, if
- * (ops & ~channel().validOps()) != 0
+ * {@code (ops & ~channel().validOps()) != 0}
*
* @throws CancelledKeyException
* If this key has been cancelled
@@ -272,15 +272,15 @@ public abstract class SelectionKey {
* An invocation of this method of the form k.isReadable()
* behaves in exactly the same way as the expression
*
- *
- * k.readyOps() & OP_READ != 0
+ * {@code
+ * k.readyOps() & OP_READ != 0
+ * }
*
* If this key's channel does not support read operations then this
* method always returns false.
*
* @return true if, and only if,
- * readyOps() & OP_READ is
- * nonzero
+ {@code readyOps() & OP_READ} is nonzero
*
* @throws CancelledKeyException
* If this key has been cancelled
@@ -295,15 +295,15 @@ public abstract class SelectionKey {
* An invocation of this method of the form k.isWritable()
* behaves in exactly the same way as the expression
*
- *
- * k.readyOps() & OP_WRITE != 0
+ * {@code
+ * k.readyOps() & OP_WRITE != 0
+ * }
*
* If this key's channel does not support write operations then this
* method always returns false.
*
* @return true if, and only if,
- * readyOps() & OP_WRITE
- * is nonzero
+ * {@code readyOps() & OP_WRITE} is nonzero
*
* @throws CancelledKeyException
* If this key has been cancelled
@@ -319,15 +319,15 @@ public abstract class SelectionKey {
* An invocation of this method of the form k.isConnectable()
* behaves in exactly the same way as the expression
*
- *
- * k.readyOps() & OP_CONNECT != 0
+ * {@code
+ * k.readyOps() & OP_CONNECT != 0
+ * }
*
* If this key's channel does not support socket-connect operations * then this method always returns false.
* * @return true if, and only if, - * readyOps() & OP_CONNECT - * is nonzero + * {@code readyOps() & OP_CONNECT} is nonzero * * @throws CancelledKeyException * If this key has been cancelled @@ -343,15 +343,15 @@ public abstract class SelectionKey { *An invocation of this method of the form k.isAcceptable() * behaves in exactly the same way as the expression * - *
+ *- * k.readyOps() & OP_ACCEPT != 0
{@code
+ * k.readyOps() & OP_ACCEPT != 0
+ * }
*
* If this key's channel does not support socket-accept operations then * this method always returns false.
* * @return true if, and only if, - * readyOps() & OP_ACCEPT - * is nonzero + * {@code readyOps() & OP_ACCEPT} is nonzero * * @throws CancelledKeyException * If this key has been cancelled diff --git a/src/share/classes/java/nio/charset/Charset-X-Coder.java.template b/src/share/classes/java/nio/charset/Charset-X-Coder.java.template index 2449d56cf..8b115cc0f 100644 --- a/src/share/classes/java/nio/charset/Charset-X-Coder.java.template +++ b/src/share/classes/java/nio/charset/Charset-X-Coder.java.template @@ -260,7 +260,7 @@ public abstract class Charset$Coder$ { * method, passing the new replacement, after checking that the new * replacement is acceptable. * - * @param newReplacement + * @param newReplacement The replacement value * #if[decoder] * The new replacement; must not be null @@ -305,7 +305,7 @@ public abstract class Charset$Coder$ { * should be overridden by $coder$s that require notification of changes to * the replacement. * - * @param newReplacement + * @param newReplacement The replacement value */ protected void implReplaceWith($replType$ newReplacement) { } diff --git a/src/share/classes/java/nio/file/Path.java b/src/share/classes/java/nio/file/Path.java index a7933a348..577827658 100644 --- a/src/share/classes/java/nio/file/Path.java +++ b/src/share/classes/java/nio/file/Path.java @@ -64,7 +64,7 @@ import java.util.Iterator; * those developing custom file system implementations. Methods may be added to * this interface in future releases. * - *Paths may be used with the {@link Files} class to operate on files, * directories, and other types of files. For example, suppose we want a {@link * java.io.BufferedReader} to read text from a file "{@code access.log}". The @@ -87,7 +87,7 @@ import java.util.Iterator; * addition, the {@link #toFile toFile} method is useful to construct a {@code * File} from the {@code String} representation of a {@code Path}. * - *
Implementations of this interface are immutable and safe for use by
* multiple concurrent threads.
*
diff --git a/src/share/classes/java/security/KeyStore.java b/src/share/classes/java/security/KeyStore.java
index 75d405771..5f1482c75 100644
--- a/src/share/classes/java/security/KeyStore.java
+++ b/src/share/classes/java/security/KeyStore.java
@@ -317,7 +317,7 @@ public class KeyStore {
* been specified by properties in the domain configuration data.
* It is cloned to prevent subsequent modification.
*
- * @exception NullPointerExcetion if {@code configuration} or
+ * @exception NullPointerException if {@code configuration} or
* {@code protectionParams} is {@code null}
*/
public DomainLoadStoreParameter(URI configuration,
diff --git a/src/share/classes/java/security/SecureRandom.java b/src/share/classes/java/security/SecureRandom.java
index 1b4872fa6..7d25b147e 100644
--- a/src/share/classes/java/security/SecureRandom.java
+++ b/src/share/classes/java/security/SecureRandom.java
@@ -466,7 +466,7 @@ public class SecureRandom extends java.util.Random {
* nextLong, and nextFloat).
*
* @param numBits number of pseudo-random bits to be generated, where
- * 0 <= numBits <= 32.
+ * {@code 0 <= numBits <= 32}.
*
* @return an int containing the user-specified number
* of pseudo-random bits (right justified, with leading zeros).
diff --git a/src/share/classes/java/security/cert/CertPathValidatorException.java b/src/share/classes/java/security/cert/CertPathValidatorException.java
index 9eedb620d..03cae751a 100644
--- a/src/share/classes/java/security/cert/CertPathValidatorException.java
+++ b/src/share/classes/java/security/cert/CertPathValidatorException.java
@@ -141,8 +141,8 @@ public class CertPathValidatorException extends GeneralSecurityException {
* that caused the error (or -1 if not applicable). Note that
* the list of certificates in a CertPath is zero based.
* @throws IndexOutOfBoundsException if the index is out of range
- * (index < -1 || (certPath != null && index >=
- * certPath.getCertificates().size())
+ * {@code (index < -1 || (certPath != null && index >=
+ * certPath.getCertificates().size()) }
* @throws IllegalArgumentException if certPath is
* null and index is not -1
*/
@@ -164,8 +164,8 @@ public class CertPathValidatorException extends GeneralSecurityException {
* the list of certificates in a CertPath is zero based.
* @param reason the reason the validation failed
* @throws IndexOutOfBoundsException if the index is out of range
- * (index < -1 || (certPath != null && index >=
- * certPath.getCertificates().size())
+ * {@code (index < -1 || (certPath != null && index >=
+ * certPath.getCertificates().size()) }
* @throws IllegalArgumentException if certPath is
* null and index is not -1
* @throws NullPointerException if reason is null
diff --git a/src/share/classes/java/security/cert/CertificateFactory.java b/src/share/classes/java/security/cert/CertificateFactory.java
index 57a3fe15f..d0762df16 100644
--- a/src/share/classes/java/security/cert/CertificateFactory.java
+++ b/src/share/classes/java/security/cert/CertificateFactory.java
@@ -65,7 +65,7 @@ import sun.security.jca.GetInstance.Instance;
* read position of the input stream is positioned to the next certificate in
* the file:
* - *
+ * {@code
* FileInputStream fis = new FileInputStream(filename);
* BufferedInputStream bis = new BufferedInputStream(fis);
*
@@ -75,7 +75,7 @@ import sun.security.jca.GetInstance.Instance;
* Certificate cert = cf.generateCertificate(bis);
* System.out.println(cert.toString());
* }
- *
+ * }
*
* The following example parses a PKCS#7-formatted certificate reply stored * in a file and extracts all the certificates from it:
diff --git a/src/share/classes/java/security/cert/X509Extension.java b/src/share/classes/java/security/cert/X509Extension.java index e2c362ee3..ee63e6623 100644 --- a/src/share/classes/java/security/cert/X509Extension.java +++ b/src/share/classes/java/security/cert/X509Extension.java @@ -84,12 +84,12 @@ public interface X509Extension { * * Here is sample code to get a Set of critical extensions from an * X509Certificate and print the OIDs: - *
+ * {@code
* X509Certificate cert = null;
* try (InputStream inStrm = new FileInputStream("DER-encoded-Cert")) {
* CertificateFactory cf = CertificateFactory.getInstance("X.509");
* cert = (X509Certificate)cf.generateCertificate(inStrm);
- * }
+ * }
*
* Set critSet = cert.getCriticalExtensionOIDs();
* if (critSet != null && !critSet.isEmpty()) {
@@ -98,7 +98,7 @@ public interface X509Extension {
* System.out.println(oid);
* }
* }
- *
+ * }
* @return a Set (or an empty Set if none are marked critical) of
* the extension OID strings for extensions that are marked critical.
* If there are no extensions present at all, then this method returns
diff --git a/src/share/classes/java/security/spec/EllipticCurve.java b/src/share/classes/java/security/spec/EllipticCurve.java
index a270ee724..d9eef25ca 100644
--- a/src/share/classes/java/security/spec/EllipticCurve.java
+++ b/src/share/classes/java/security/spec/EllipticCurve.java
@@ -184,9 +184,9 @@ public class EllipticCurve {
* Returns a hash code value for this elliptic curve.
* @return a hash code value computed from the hash codes of the field, A,
* and B, as follows:
- *
+ * {@code
* (field.hashCode() << 6) + (a.hashCode() << 4) + (b.hashCode() << 2)
- *
+ * }
*/
public int hashCode() {
return (field.hashCode() << 6 +
diff --git a/src/share/classes/java/sql/DatabaseMetaData.java b/src/share/classes/java/sql/DatabaseMetaData.java
index 7330b8eac..035365512 100644
--- a/src/share/classes/java/sql/DatabaseMetaData.java
+++ b/src/share/classes/java/sql/DatabaseMetaData.java
@@ -1218,21 +1218,21 @@ public interface DatabaseMetaData extends Wrapper {
*
* Each procedure description has the the following columns: *
null)
- * null)
- * null)
+ * null)
+ * @@ -1297,11 +1297,11 @@ public interface DatabaseMetaData extends Wrapper { *
Each row in the ResultSet is a parameter description or
* column description with the following fields:
*
null)
- * null)
- * null)
+ * null)
+ * ResultSet
* null)
+ * null)
* Note: Some databases may not return the column @@ -1481,19 +1481,19 @@ public interface DatabaseMetaData extends Wrapper { *
* Each table description has the following columns: *
null)
- * null)
- * null)
+ * null)
+ * null)
- * null)
- * null)
- * null)
+ * null)
+ * null)
+ * null)
- * null)
* The schema columns are: *
null)
+ * null)
* ResultSet object in which each row is a
@@ -1545,7 +1545,7 @@ public interface DatabaseMetaData extends Wrapper {
*
* The catalog column is: *
ResultSet object in which each row has a
@@ -1560,7 +1560,7 @@ public interface DatabaseMetaData extends Wrapper {
*
* The table type is: *
Each column description has the following columns: *
null)
- * null)
- * null)
+ * null)
+ * NULL values
* NULL values
* null)
- * null)
- * null)
+ * null)
+ * null if DATA_TYPE isn't REF)
- * null if the DATA_TYPE isn't REF)
- * null if the DATA_TYPE isn't REF)
- * null if DATA_TYPE
* isn't DISTINCT or user-generated REF)
- * Each privilige description has the following columns: *
null)
- * null)
- * null)
- * null)
+ * null)
+ * null)
+ * null if unknown
* Each privilige description has the following columns: *
null)
- * null)
- * null)
- * null)
+ * null)
+ * null)
+ * null if unknown
* Each column description has the following columns: *
Each column description has the following columns: *
java.sql.Types
- * java.sql.Types
+ * Each primary key column description has the following columns: *
null)
- * null)
- * null)
+ * null)
+ * null)
+ * null)
* Each primary key column description has the following columns: *
null)
- * null)
- * null)
- * null)
- * null)
+ * null)
+ * null)
- * null)
- * null)
+ * null)
+ * Each foreign key column description has the following columns: *
null)
- * null)
- * null)
+ * null)
+ * null)
+ * null)
* being exported (may be null)
- * null)
+ * null)
* being exported (may be null)
- * null)
- * null)
- * null)
+ * null)
+ * Each foreign key column description has the following columns: *
null)
- * null)
- * null)
+ * null)
+ * null)
+ * null)
* being exported (may be null)
- * null)
+ * null)
* being exported (may be null)
- * null)
- * null)
- * null)
+ * null)
+ * Each type description has the following columns: *
null)
- * null)
- * null)
- * null)
- * The PRECISION column represents the maximum column size that the server supports for the given datatype. @@ -2498,16 +2498,16 @@ public interface DatabaseMetaData extends Wrapper { * *
Each index column description has the following columns: *
null)
- * null)
- * null)
+ * null)
+ * null);
+ * null);
* null when TYPE is tableIndexStatistic
- * null when TYPE is
+ * null when TYPE is
* tableIndexStatistic
- * null when TYPE is
+ * null when TYPE is
* tableIndexStatistic
- * null if sort sequence is not supported;
+ * null if sort sequence is not supported;
* null when TYPE is tableIndexStatistic
- * null)
* Each type description has the following columns: *
null)
- * null)
- * null)
+ * null)
+ * null if DATA_TYPE is not
@@ -2894,14 +2894,14 @@ public interface DatabaseMetaData extends Wrapper {
* describes the designated UDT and a direct supertype. A row has the following
* columns:
* null)
- * null)
- * null)
+ * null)
+ * null)
- * null)
- * Note: If the driver does not support type hierarchies, an @@ -2936,10 +2936,10 @@ public interface DatabaseMetaData extends Wrapper { * *
Each type description has the following columns: *
null)
- * null)
- * null)
+ * null)
+ * Note: If the driver does not support type hierarchies, an
@@ -3001,35 +3001,35 @@ public interface DatabaseMetaData extends Wrapper {
* The ResultSet object that is returned has the following
* columns:
*
null)
- * null)
- * null)
+ * null)
+ * null)
- * null)
- * null)
+ * null)
+ * null if DATA_TYPE isn't REF)
- * null if DATA_TYPE isn't REF)
- * null if the DATA_TYPE isn't REF)
- * null if DATA_TYPE
* isn't DISTINCT or user-generated REF)
* RowId object remains valid.
* * The returned int values have the following relationship: - *
+ * {@code
* ROWID_UNSUPPORTED < ROWID_VALID_OTHER < ROWID_VALID_TRANSACTION
* < ROWID_VALID_SESSION < ROWID_VALID_FOREVER
- *
+ * }
* so conditional logic such as
- *
+ * {@code
* if (metadata.getRowIdLifetime() > DatabaseMetaData.ROWID_VALID_TRANSACTION)
- *
+ * }
* can be used. Valid Forever means valid across all Sessions, and valid for
* a Session means valid across all its contained Transactions.
*
@@ -3227,8 +3227,8 @@ public interface DatabaseMetaData extends Wrapper {
*
* The schema columns are: *
null)
+ * null)
* *
Each function description has the the following columns: *
null)
- * null)
- * null)
+ * null)
+ * FUNCTION_NAME
* for example with overload functions
@@ -3359,12 +3359,12 @@ public interface DatabaseMetaData extends Wrapper {
* is a parameter description, column description or
* return type description with the following fields:
* null)
- * null)
- * null)
+ * null)
+ * ResultSet
* FUNCTION_NAME
* for example with overload functions
@@ -3591,21 +3591,21 @@ public interface DatabaseMetaData extends Wrapper {
*
* Each column description has the following columns: *
null)
- * null)
- * null)
+ * null)
+ * null)
- * null)
+ * The basic service for managing a set of JDBC drivers.
- * NOTE: The {@link DataSource} interface, new in the
+ * NOTE: The {@link javax.sql.DataSource} interface, new in the
* JDBC 2.0 API, provides another way to connect to a data source.
* The use of a DataSource object is the preferred means of
* connecting to a data source.
diff --git a/src/share/classes/java/sql/ResultSet.java b/src/share/classes/java/sql/ResultSet.java
index ab5477331..7029c9359 100644
--- a/src/share/classes/java/sql/ResultSet.java
+++ b/src/share/classes/java/sql/ResultSet.java
@@ -1350,7 +1350,7 @@ public interface ResultSet extends Wrapper, AutoCloseable {
* @param rows the number of rows to fetch
* @exception SQLException if a database access error occurs; this method
* is called on a closed result set or the
- * condition rows >= 0 is not satisfied
+ * condition {@code rows >= 0} is not satisfied
* @since 1.2
* @see #getFetchSize
*/
diff --git a/src/share/classes/java/sql/Statement.java b/src/share/classes/java/sql/Statement.java
index 34859c52c..29b372f52 100644
--- a/src/share/classes/java/sql/Statement.java
+++ b/src/share/classes/java/sql/Statement.java
@@ -144,7 +144,7 @@ public interface Statement extends Wrapper, AutoCloseable {
* @param max the new column size limit in bytes; zero means there is no limit
* @exception SQLException if a database access error occurs,
* this method is called on a closed Statement
- * or the condition max >= 0 is not satisfied
+ * or the condition {@code max >= 0} is not satisfied
* @see #getMaxFieldSize
*/
void setMaxFieldSize(int max) throws SQLException;
@@ -174,7 +174,7 @@ public interface Statement extends Wrapper, AutoCloseable {
* @param max the new max rows limit; zero means there is no limit
* @exception SQLException if a database access error occurs,
* this method is called on a closed Statement
- * or the condition max >= 0 is not satisfied
+ * or the condition {@code max >= 0} is not satisfied
* @see #getMaxRows
*/
void setMaxRows(int max) throws SQLException;
@@ -240,7 +240,7 @@ public interface Statement extends Wrapper, AutoCloseable {
* there is no limit
* @exception SQLException if a database access error occurs,
* this method is called on a closed Statement
- * or the condition seconds >= 0 is not satisfied
+ * or the condition {@code seconds >= 0} is not satisfied
* @see #getQueryTimeout
*/
void setQueryTimeout(int seconds) throws SQLException;
@@ -385,10 +385,10 @@ public interface Statement extends Wrapper, AutoCloseable {
* object(s) obtained with the method getResultSet.
*
*
There are no more results when the following is true: - *
+ * {@code
* // stmt is a Statement object
* ((stmt.getMoreResults() == false) && (stmt.getUpdateCount() == -1))
- *
+ * }
*
* @return true if the next result is a ResultSet
* object; false if it is an update count or there are
@@ -452,7 +452,7 @@ public interface Statement extends Wrapper, AutoCloseable {
* @param rows the number of rows to fetch
* @exception SQLException if a database access error occurs,
* this method is called on a closed Statement or the
- * condition rows >= 0 is not satisfied.
+ * condition {@code rows >= 0} is not satisfied.
* @since 1.2
* @see #getFetchSize
*/
@@ -665,10 +665,10 @@ public interface Statement extends Wrapper, AutoCloseable {
* true if the next result is a ResultSet object.
*
* There are no more results when the following is true: - *
+ * {@code
* // stmt is a Statement object
* ((stmt.getMoreResults(current) == false) && (stmt.getUpdateCount() == -1))
- *
+ * }
*
* @param current one of the following Statement
* constants indicating what should happen to current
@@ -1107,7 +1107,7 @@ public interface Statement extends Wrapper, AutoCloseable {
* @param max the new max rows limit; zero means there is no limit
* @exception SQLException if a database access error occurs,
* this method is called on a closed Statement
- * or the condition max >= 0 is not satisfied
+ * or the condition {@code max >= 0} is not satisfied
* @see #getMaxRows
* @since 1.8
*/
diff --git a/src/share/classes/java/text/CharacterIterator.java b/src/share/classes/java/text/CharacterIterator.java
index 2b21e14e5..7674268db 100644
--- a/src/share/classes/java/text/CharacterIterator.java
+++ b/src/share/classes/java/text/CharacterIterator.java
@@ -62,27 +62,27 @@ package java.text;
* Examples:
* * Traverse the text from start to finish - *
+ * {@code
* public void traverseForward(CharacterIterator iter) {
* for(char c = iter.first(); c != CharacterIterator.DONE; c = iter.next()) {
* processChar(c);
* }
* }
- *
+ * }
*
* Traverse the text backwards, from end to start
- *
+ * {@code
* public void traverseBackward(CharacterIterator iter) {
* for(char c = iter.last(); c != CharacterIterator.DONE; c = iter.previous()) {
* processChar(c);
* }
* }
- *
+ * }
*
* Traverse both forward and backward from a given position in the text.
* Calls to notBoundary() in this example represents some
* additional stopping criteria.
- *
+ * {@code
* public void traverseOut(CharacterIterator iter, int pos) {
* for (char c = iter.setIndex(pos);
* c != CharacterIterator.DONE && notBoundary(c);
@@ -96,7 +96,7 @@ package java.text;
* int start = iter.getIndex();
* processSection(start, end);
* }
- *
+ * }
*
* @see StringCharacterIterator
* @see AttributedCharacterIterator
diff --git a/src/share/classes/java/text/ChoiceFormat.java b/src/share/classes/java/text/ChoiceFormat.java
index 1e3188483..7814f0ef2 100644
--- a/src/share/classes/java/text/ChoiceFormat.java
+++ b/src/share/classes/java/text/ChoiceFormat.java
@@ -376,7 +376,7 @@ public class ChoiceFormat extends NumberFormat {
/**
* Returns pattern with formatted double.
- * @param number number to be formatted & substituted.
+ * @param number number to be formatted and substituted.
* @param toAppendTo where text is appended.
* @param status ignore no useful status is returned.
*/
diff --git a/src/share/classes/java/text/Collator.java b/src/share/classes/java/text/Collator.java
index aaa5276d6..d105a8104 100644
--- a/src/share/classes/java/text/Collator.java
+++ b/src/share/classes/java/text/Collator.java
@@ -72,14 +72,14 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
* The following example shows how to compare two strings using
* the Collator for the default locale.
* - ** *+ **{@code * // Compare two strings in the default locale * Collator myCollator = Collator.getInstance(); * if( myCollator.compare("abc", "ABC") < 0 ) * System.out.println("abc is less than ABC"); * else * System.out.println("abc is greater than or equal to ABC"); - *+ * }
diff --git a/src/share/classes/java/util/Calendar.java b/src/share/classes/java/util/Calendar.java
index 19c3c8540..566b8b090 100644
--- a/src/share/classes/java/util/Calendar.java
+++ b/src/share/classes/java/util/Calendar.java
@@ -2681,9 +2681,9 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable This implementation uses the "brute force" technique of scanning
* over the source list, looking for a match with the target at each
@@ -977,9 +977,9 @@ public class Collections {
* Returns the starting position of the last occurrence of the specified
* target list within the specified source list, or -1 if there is no such
* occurrence. More formally, returns the highest index i
- * such that source.subList(i, i+target.size()).equals(target),
+ * such that {@code source.subList(i, i+target.size()).equals(target)},
* or -1 if there is no such index. (Returns -1 if
- * target.size() > source.size().)
+ * {@code target.size() > source.size()})
*
* This implementation uses the "brute force" technique of iterating
* over the source list, looking for a match with the target at each
diff --git a/src/share/classes/java/util/Date.java b/src/share/classes/java/util/Date.java
index 61dac3503..502daaefd 100644
--- a/src/share/classes/java/util/Date.java
+++ b/src/share/classes/java/util/Date.java
@@ -984,8 +984,9 @@ public class Date
* exclusive OR of the two halves of the primitive long
* value returned by the {@link Date#getTime}
* method. That is, the hash code is the value of the expression:
- * Sample use: this override will allow the map to grow up to 100
* entries and then delete the eldest entry each time a new entry is
* added, maintaining a steady state of 100 entries.
- * This method typically does not modify the map in any way,
* instead allowing the map to modify itself as directed by its
diff --git a/src/share/classes/java/util/Random.java b/src/share/classes/java/util/Random.java
index c169e053d..ca430bae2 100644
--- a/src/share/classes/java/util/Random.java
+++ b/src/share/classes/java/util/Random.java
@@ -372,7 +372,7 @@ class Random implements java.io.Serializable {
* range {@code 0.0f} (inclusive) to {@code 1.0f} (exclusive), is
* pseudorandomly generated and returned. All 224 possible {@code float} values
- * of the form m x 2m x 2-24, where m is a positive
* integer less than 224 , are
* produced with (approximately) equal probability.
diff --git a/src/share/classes/java/util/ResourceBundle.java b/src/share/classes/java/util/ResourceBundle.java
index 0d52daa9c..1d9d80b90 100644
--- a/src/share/classes/java/util/ResourceBundle.java
+++ b/src/share/classes/java/util/ResourceBundle.java
@@ -2323,9 +2323,9 @@ public abstract class ResourceBundle {
* is returned. And if the resource bundles for the "ja" and
* "" For example, this code allows a user to read a number from
* System.in:
- * As another example, this code allows The scanner can also use delimiters other than whitespace. This
* example reads several items in from a string:
- *
* prints the following output:
- * The same output can be generated with this code, which uses a regular
* expression to parse all four tokens at once:
- * The default whitespace delimiter used
* by a scanner is as recognized by {@link java.lang.Character}.{@link
@@ -2640,11 +2644,11 @@ public final class Scanner implements Iterator This method is typically invoked from within a task's run method, to
* determine whether the current execution of the task is sufficiently
* timely to warrant performing the scheduled activity:
- *
* Here is an example using packer and unpacker:
- *
* A Pack200 file compressed with gzip can be hosted on HTTP/1.1 web servers.
* The deployment applications can use "Accept-Encoding=pack200-gzip". This
diff --git a/src/share/classes/java/util/logging/ConsoleHandler.java b/src/share/classes/java/util/logging/ConsoleHandler.java
index e0e70a5e6..a8b4bc4f0 100644
--- a/src/share/classes/java/util/logging/ConsoleHandler.java
+++ b/src/share/classes/java/util/logging/ConsoleHandler.java
@@ -35,7 +35,7 @@ import java.net.*;
*
* Configuration:
* By default each ConsoleHandler is initialized using the following
- * LogManager configuration properties where Object. This method is equivalent to:
- *
+ * }
* if and only if
+ *
{@code
* compareTo(when) < 0
- * when is a Calendar
* instance. Otherwise, the method returns false.
*
@@ -2702,9 +2702,9 @@ public abstract class Calendar implements Serializable, Cloneable, ComparableObject. This method is equivalent to:
- *
+ * }
* if and only if
+ *
{@code
* compareTo(when) > 0
- * when is a Calendar
* instance. Otherwise, the method returns false.
*
diff --git a/src/share/classes/java/util/Collections.java b/src/share/classes/java/util/Collections.java
index 30d589cdc..da258793b 100644
--- a/src/share/classes/java/util/Collections.java
+++ b/src/share/classes/java/util/Collections.java
@@ -924,9 +924,9 @@ public class Collections {
* Returns the starting position of the first occurrence of the specified
* target list within the specified source list, or -1 if there is no
* such occurrence. More formally, returns the lowest index i
- * such that source.subList(i, i+target.size()).equals(target),
+ * such that {@code source.subList(i, i+target.size()).equals(target)},
* or -1 if there is no such index. (Returns -1 if
- * target.size() > source.size().)
+ * {@code target.size() > source.size()})
*
*
+ *
- * (int)(this.getTime()^(this.getTime() >>> 32))
*
* @return a hash code value for this object.
*/
@@ -1085,7 +1086,7 @@ public class Date
/**
* Creates a string representation of this Date object of
* the form:
- * {@code
+ * (int)(this.getTime()^(this.getTime() >>> 32))
+ * }
+ *
*
*
* where:
* d mon yyyy hh:mm:ss GMT
*
+ *
*
* {@code
* private static final int MAX_ENTRIES = 100;
*
* protected boolean removeEldestEntry(Map.Entry eldest) {
* return size() > MAX_ENTRIES;
* }
- *
+ * }Locales are found, then the runtime resource
* lookup path (parent chain) is:
- *
+ *
*
* @param baseName
* the base name of the resource bundle, a fully
diff --git a/src/share/classes/java/util/Scanner.java b/src/share/classes/java/util/Scanner.java
index cc19b0d12..f6967f3a7 100644
--- a/src/share/classes/java/util/Scanner.java
+++ b/src/share/classes/java/util/Scanner.java
@@ -49,47 +49,51 @@ import sun.misc.LRUCache;
*
* {@code
* Messages_ja -> Messages
- *
+ * }
*
*
+ *
+ * }{@code
* Scanner sc = new Scanner(System.in);
* int i = sc.nextInt();
- * long types to be
* assigned from entries in a file myNumbers:
- *
*
*
+ *
+ * }
+ * }{@code
* Scanner sc = new Scanner(new File("myNumbers"));
* while (sc.hasNextLong()) {
* long aLong = sc.nextLong();
- * }
*
+ *
+ * s.close();
+ * }{@code
* String input = "1 fish 2 fish red fish blue fish";
* Scanner s = new Scanner(input).useDelimiter("\\s*fish\\s*");
* System.out.println(s.nextInt());
* System.out.println(s.nextInt());
* System.out.println(s.next());
* System.out.println(s.next());
- * s.close();
+ * blue
+ * }
+ *
{@code
* 1
* 2
* red
- * blue
*
*
+ *
+ * s.close();
+ * }{@code
* String input = "1 fish 2 fish red fish blue fish";
* Scanner s = new Scanner(input);
* s.findInLine("(\\d+) fish (\\d+) fish (\\w+) fish (\\w+)");
* MatchResult result = s.match();
* for (int i=1; i<=result.groupCount(); i++)
* System.out.println(result.group(i));
- * s.close();
*
* @return this scanner
*
diff --git a/src/share/classes/java/util/TimerTask.java b/src/share/classes/java/util/TimerTask.java
index b8c834086..691c9a03d 100644
--- a/src/share/classes/java/util/TimerTask.java
+++ b/src/share/classes/java/util/TimerTask.java
@@ -130,14 +130,14 @@ public abstract class TimerTask implements Runnable {
*
+ *
+ * }{@code
* scanner.useDelimiter("\\p{javaWhitespace}+")
* .useLocale(Locale.getDefault(Locale.Category.FORMAT))
* .useRadix(10);
- *
+ *
* This method is typically not used in conjunction with
* fixed-delay execution repeating tasks, as their scheduled
* execution times are allowed to drift over time, and so are not terribly
diff --git a/src/share/classes/java/util/jar/Pack200.java b/src/share/classes/java/util/jar/Pack200.java
index c3ea39587..dbefe5930 100644
--- a/src/share/classes/java/util/jar/Pack200.java
+++ b/src/share/classes/java/util/jar/Pack200.java
@@ -45,7 +45,7 @@ import java.beans.PropertyChangeListener;
* transform the byte-stream back to JAR format.
* {@code
* public void run() {
* if (System.currentTimeMillis() - scheduledExecutionTime() >=
* MAX_TARDINESS)
* return; // Too late; skip this execution.
* // Perform the task
* }
- *
+ * }
+ * }
*
+ *
{@code
* import java.util.jar.Pack200;
* import java.util.jar.Pack200.*;
* ...
@@ -90,7 +90,7 @@ import java.beans.PropertyChangeListener;
* } catch (IOException ioe) {
* ioe.printStackTrace();
* }
- *
The XML document has the following DOCTYPE declaration: - *
- * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> - *+ *
{@code
+ *
+ * }
* Note that the system URI (http://java.sun.com/dtd/preferences.dtd) is
* not accessed when exporting or importing preferences; it merely
* serves as a string to uniquely identify the DTD, which is:
- * - * <?xml version="1.0" encoding="UTF-8"?> + ** * @param src * a{@code + * * - * <!-- DTD for a Preferences tree. --> + * * - * <!-- The preferences element is at the root of an XML document - * representing a Preferences tree. --> - * <!ELEMENT preferences (root)> + * + * * - * <!-- The preferences element contains an optional version attribute, - * which specifies version of DTD. --> - * <!ATTLIST preferences EXTERNAL_XML_VERSION CDATA "0.0" > + * + * * - * <!-- The root element has a map representing the root's preferences - * (if any), and one node for each child of the root (if any). --> - * <!ELEMENT root (map, node*) > + * + * * - * <!-- Additionally, the root contains a type attribute, which - * specifies whether it's the system or user root. --> - * <!ATTLIST root - * type (system|user) #REQUIRED > + * + * * - * <!-- Each node has a map representing its preferences (if any), - * and one node for each child (if any). --> - * <!ELEMENT node (map, node*) > + * + * * - * <!-- Additionally, each node has a name attribute --> - * <!ATTLIST node - * name CDATA #REQUIRED > + * + * * - * <!-- A map represents the preferences stored at a node (if any). --> - * <!ELEMENT map (entry*) > + * + * * - * <!-- An entry represents a single preference, which is simply - * a key-value pair. --> - * <!ELEMENT entry EMPTY > - * <!ATTLIST entry + * + * + * + * value CDATA #REQUIRED > + * }* * Every Preferences implementation must have an associated {@link * PreferencesFactory} implementation. Every Java(TM) SE implementation must provide @@ -1161,9 +1161,9 @@ public abstract class Preferences { * This XML document is, in effect, an offline backup of the node. * *The XML document will have the following DOCTYPE declaration: - *
- * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> - *+ *{@code + * + * }* The UTF-8 character encoding will be used. * *This method is an exception to the general rule that the results of @@ -1192,9 +1192,9 @@ public abstract class Preferences { * effect, an offline backup of the subtree rooted at the node. * *
The XML document will have the following DOCTYPE declaration: - *
- * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> - *+ *{@code + * + * }* The UTF-8 character encoding will be used. * *This method is an exception to the general rule that the results of @@ -1228,9 +1228,9 @@ public abstract class Preferences { * do not exist, the nodes will be created. * *
The XML document must have the following DOCTYPE declaration: - *
- * <!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd"> - *+ *{@code + * + * }* (This method is designed for use in conjunction with * {@link #exportNode(OutputStream)} and * {@link #exportSubtree(OutputStream)}. diff --git a/src/share/classes/java/util/regex/MatchResult.java b/src/share/classes/java/util/regex/MatchResult.java index 9b5233180..9767d2863 100644 --- a/src/share/classes/java/util/regex/MatchResult.java +++ b/src/share/classes/java/util/regex/MatchResult.java @@ -79,7 +79,7 @@ public interface MatchResult { /** * Returns the offset after the last character matched. * - * @return @return The offset after the last character matched + * @return The offset after the last character matched * * @throws IllegalStateException * If no match has yet been attempted, diff --git a/src/share/classes/java/util/regex/Pattern.java b/src/share/classes/java/util/regex/Pattern.java index 14cde68c5..ae7468758 100644 --- a/src/share/classes/java/util/regex/Pattern.java +++ b/src/share/classes/java/util/regex/Pattern.java @@ -108,7 +108,7 @@ import java.util.stream.StreamSupport; ** \x{h...h} *The character with hexadecimal value 0xh...h * ({@link java.lang.Character#MIN_CODE_POINT Character.MIN_CODE_POINT} - * <= 0xh...h <=  + * <= 0xh...h <= * {@link java.lang.Character#MAX_CODE_POINT Character.MAX_CODE_POINT}) diff --git a/src/share/classes/java/util/stream/package-info.java b/src/share/classes/java/util/stream/package-info.java index 4dfb1e998..39509ffff 100644 --- a/src/share/classes/java/util/stream/package-info.java +++ b/src/share/classes/java/util/stream/package-info.java @@ -141,7 +141,7 @@ * parallelism is explicitly requested. For example, {@code Collection} has methods * {@link java.util.Collection#stream} and {@link java.util.Collection#parallelStream}, * which produce sequential and parallel streams respectively; other stream-bearing methods - * such as {@link java.util.stream.Streams#intRange(int, int)} produce sequential + * such as {@link java.util.stream.IntStream#range(int, int)} produce sequential * streams but these can be efficiently parallelized by calling {@code parallel()} on the * result. The set of operations on serial and parallel streams is identical. To execute the * "sum of weights of blocks" query in parallel, we would do: diff --git a/src/share/classes/java/util/zip/DeflaterInputStream.java b/src/share/classes/java/util/zip/DeflaterInputStream.java index a996b14e0..cdca7f63b 100644 --- a/src/share/classes/java/util/zip/DeflaterInputStream.java +++ b/src/share/classes/java/util/zip/DeflaterInputStream.java @@ -97,7 +97,7 @@ public class DeflaterInputStream extends FilterInputStream { * @param in input stream to read the uncompressed data to * @param defl compressor ("deflater") for this stream * @param bufLen compression buffer size - * @throws IllegalArgumentException if {@code bufLen} is <= 0 + * @throws IllegalArgumentException if {@code bufLen <= 0} * @throws NullPointerException if {@code in} or {@code defl} is null */ public DeflaterInputStream(InputStream in, Deflater defl, int bufLen) { @@ -163,8 +163,7 @@ public class DeflaterInputStream extends FilterInputStream { * @param len maximum number of compressed bytes to read into {@code b} * @return the actual number of bytes read, or -1 if the end of the * uncompressed input stream is reached - * @throws IndexOutOfBoundsException if {@code len} > {@code b.length - - * off} + * @throws IndexOutOfBoundsException if {@code len > b.length - off} * @throws IOException if an I/O error occurs or if this input stream is * already closed */ diff --git a/src/share/classes/java/util/zip/DeflaterOutputStream.java b/src/share/classes/java/util/zip/DeflaterOutputStream.java index c19a222e5..7cb0f8388 100644 --- a/src/share/classes/java/util/zip/DeflaterOutputStream.java +++ b/src/share/classes/java/util/zip/DeflaterOutputStream.java @@ -71,7 +71,7 @@ class DeflaterOutputStream extends FilterOutputStream { * {@link Deflater#SYNC_FLUSH} before flushing the output * stream, otherwise only flushes the output stream * - * @throws IllegalArgumentException if size is <= 0 + * @throws IllegalArgumentException if {@code size <= 0} * * @since 1.7 */ @@ -101,7 +101,7 @@ class DeflaterOutputStream extends FilterOutputStream { * @param out the output stream * @param def the compressor ("deflater") * @param size the output buffer size - * @exception IllegalArgumentException if size is <= 0 + * @exception IllegalArgumentException if {@code size <= 0} */ public DeflaterOutputStream(OutputStream out, Deflater def, int size) { this(out, def, size, false); diff --git a/src/share/classes/java/util/zip/GZIPInputStream.java b/src/share/classes/java/util/zip/GZIPInputStream.java index 74a5c60f1..b3d9240ba 100644 --- a/src/share/classes/java/util/zip/GZIPInputStream.java +++ b/src/share/classes/java/util/zip/GZIPInputStream.java @@ -71,7 +71,7 @@ class GZIPInputStream extends InflaterInputStream { * @exception ZipException if a GZIP format error has occurred or the * compression method used is unsupported * @exception IOException if an I/O error has occurred - * @exception IllegalArgumentException if size is <= 0 + * @exception IllegalArgumentException if {@code size <= 0} */ public GZIPInputStream(InputStream in, int size) throws IOException { super(in, new Inflater(true), size); diff --git a/src/share/classes/java/util/zip/GZIPOutputStream.java b/src/share/classes/java/util/zip/GZIPOutputStream.java index d5edcf122..e454956a1 100644 --- a/src/share/classes/java/util/zip/GZIPOutputStream.java +++ b/src/share/classes/java/util/zip/GZIPOutputStream.java @@ -61,8 +61,7 @@ class GZIPOutputStream extends DeflaterOutputStream { * @param out the output stream * @param size the output buffer size * @exception IOException If an I/O error has occurred. - * @exception IllegalArgumentException if size is <= 0 - + * @exception IllegalArgumentException if {@code size <= 0} */ public GZIPOutputStream(OutputStream out, int size) throws IOException { this(out, size, false); @@ -81,7 +80,7 @@ class GZIPOutputStream extends DeflaterOutputStream { * {@link Deflater#SYNC_FLUSH} before flushing the output * stream, otherwise only flushes the output stream * @exception IOException If an I/O error has occurred. - * @exception IllegalArgumentException if size is <= 0 + * @exception IllegalArgumentException if {@code size <= 0} * * @since 1.7 */ diff --git a/src/share/classes/java/util/zip/InflaterInputStream.java b/src/share/classes/java/util/zip/InflaterInputStream.java index b948905d0..23cb9d943 100644 --- a/src/share/classes/java/util/zip/InflaterInputStream.java +++ b/src/share/classes/java/util/zip/InflaterInputStream.java @@ -75,7 +75,7 @@ class InflaterInputStream extends FilterInputStream { * @param in the input stream * @param inf the decompressor ("inflater") * @param size the input buffer size - * @exception IllegalArgumentException if size is <= 0 + * @exception IllegalArgumentException if {@code size <= 0} */ public InflaterInputStream(InputStream in, Inflater inf, int size) { super(in); @@ -191,7 +191,7 @@ class InflaterInputStream extends FilterInputStream { * @param n the number of bytes to skip * @return the actual number of bytes skipped. * @exception IOException if an I/O error has occurred - * @exception IllegalArgumentException if n < 0 + * @exception IllegalArgumentException if {@code n < 0} */ public long skip(long n) throws IOException { if (n < 0) { diff --git a/src/share/classes/java/util/zip/InflaterOutputStream.java b/src/share/classes/java/util/zip/InflaterOutputStream.java index ab90ccb03..53f8b5ded 100644 --- a/src/share/classes/java/util/zip/InflaterOutputStream.java +++ b/src/share/classes/java/util/zip/InflaterOutputStream.java @@ -97,7 +97,7 @@ public class InflaterOutputStream extends FilterOutputStream { * @param out output stream to write the uncompressed data to * @param infl decompressor ("inflater") for this stream * @param bufLen decompression buffer size - * @throws IllegalArgumentException if {@code bufLen} is <= 0 + * @throws IllegalArgumentException if {@code bufLen <= 0} * @throws NullPointerException if {@code out} or {@code infl} is null */ public InflaterOutputStream(OutputStream out, Inflater infl, int bufLen) { @@ -211,8 +211,8 @@ public class InflaterOutputStream extends FilterOutputStream { * the output stream * @param off starting offset of the compressed data within {@code b} * @param len number of bytes to decompress from {@code b} - * @throws IndexOutOfBoundsException if {@code off} < 0, or if - * {@code len} < 0, or if {@code len} > {@code b.length - off} + * @throws IndexOutOfBoundsException if {@code off < 0}, or if + * {@code len < 0}, or if {@code len > b.length - off} * @throws IOException if an I/O error occurs or this stream is already * closed * @throws NullPointerException if {@code b} is null diff --git a/src/share/classes/java/util/zip/ZipInputStream.java b/src/share/classes/java/util/zip/ZipInputStream.java index 5c315d452..fee9f5108 100644 --- a/src/share/classes/java/util/zip/ZipInputStream.java +++ b/src/share/classes/java/util/zip/ZipInputStream.java @@ -232,7 +232,7 @@ class ZipInputStream extends InflaterInputStream implements ZipConstants { * @return the actual number of bytes skipped * @exception ZipException if a ZIP file error has occurred * @exception IOException if an I/O error has occurred - * @exception IllegalArgumentException if n < 0 + * @exception IllegalArgumentException if {@code n < 0} */ public long skip(long n) throws IOException { if (n < 0) { diff --git a/src/share/classes/javax/crypto/spec/IvParameterSpec.java b/src/share/classes/javax/crypto/spec/IvParameterSpec.java index e396c5b45..fa1eaedd2 100644 --- a/src/share/classes/javax/crypto/spec/IvParameterSpec.java +++ b/src/share/classes/javax/crypto/spec/IvParameterSpec.java @@ -68,7 +68,7 @@ public class IvParameterSpec implements AlgorithmParameterSpec { * starts. * @param len the number of IV bytes. * @throws IllegalArgumentException if \t *The tab character ('\u0009') ivisnull- * or(iv.length - offset < len)+ * or {@code (iv.length - offset < len)} * @throws ArrayIndexOutOfBoundsException is thrown ifoffset* orlenindex bytes outside theiv. */ diff --git a/src/share/classes/javax/crypto/spec/RC5ParameterSpec.java b/src/share/classes/javax/crypto/spec/RC5ParameterSpec.java index 7248eefa8..499480c2c 100644 --- a/src/share/classes/javax/crypto/spec/RC5ParameterSpec.java +++ b/src/share/classes/javax/crypto/spec/RC5ParameterSpec.java @@ -80,7 +80,7 @@ public class RC5ParameterSpec implements AlgorithmParameterSpec { * bytes of the buffer are copied to protect against subsequent * modification. * @exception IllegalArgumentException ifivis - *nullor(iv.length < 2 * (wordSize / 8))+ *nullor {@code (iv.length < 2 * (wordSize / 8))} */ public RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv) { this(version, rounds, wordSize, iv, 0); @@ -107,7 +107,7 @@ public class RC5ParameterSpec implements AlgorithmParameterSpec { * @param offset the offset inivwhere the IV starts. * @exception IllegalArgumentException ifivis *nullor - *(iv.length - offset < 2 * (wordSize / 8))+ * {@code (iv.length - offset < 2 * (wordSize / 8))} */ public RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv, int offset) { diff --git a/src/share/classes/javax/crypto/spec/SecretKeySpec.java b/src/share/classes/javax/crypto/spec/SecretKeySpec.java index 827be0f52..586399dea 100644 --- a/src/share/classes/javax/crypto/spec/SecretKeySpec.java +++ b/src/share/classes/javax/crypto/spec/SecretKeySpec.java @@ -130,7 +130,7 @@ public class SecretKeySpec implements KeySpec, SecretKey { * for information about standard algorithm names. * @exception IllegalArgumentException ifalgorithm* is null orkeyis null, empty, or too short, - * i.e.key.length-offsetor. + * i.e. {@code key.length-offset offset lenindex bytes outside the *key. diff --git a/src/share/classes/javax/naming/BinaryRefAddr.java b/src/share/classes/javax/naming/BinaryRefAddr.java index 541c03420..711a83408 100644 --- a/src/share/classes/javax/naming/BinaryRefAddr.java +++ b/src/share/classes/javax/naming/BinaryRefAddr.java @@ -89,9 +89,9 @@ public class BinaryRefAddr extends RefAddr { * @param src The non-null contents of the address as a byte array. * The contents of src is copied into the new BinaryRefAddr. * @param offset The starting index in src to get the bytes. - * 0 <= offset <= src.length. + * {@code 0 <= offset <= src.length}. * @param count The number of bytes to extract from src. - * 0 <= count <= src.length-offset. + * {@code 0 <= count <= src.length-offset}. */ public BinaryRefAddr(String addrType, byte[] src, int offset, int count) { super(addrType); diff --git a/src/share/classes/javax/naming/directory/Attribute.java b/src/share/classes/javax/naming/directory/Attribute.java index fda9e3de2..6ed0d9ad5 100644 --- a/src/share/classes/javax/naming/directory/Attribute.java +++ b/src/share/classes/javax/naming/directory/Attribute.java @@ -265,7 +265,7 @@ public interface Attribute extends Cloneable, java.io.Serializable { * If the attribute values are unordered, * this method returns the value that happens to be at that index. * @param ix The index of the value in the ordered list of attribute values. - * 0 <= ix < size(). + * {@code 0 <= ix < size()}. * @return The possibly null attribute value at index ix; * null if the attribute value is null. * @exception NamingException If a naming exception was encountered while @@ -284,7 +284,7 @@ public interface Attribute extends Cloneable, java.io.Serializable { * the front of the list (and their indices decremented by one). * * @param ix The index of the value to remove. - * 0 <= ix < size(). + * {@code 0 <= ix < size()}. * @return The possibly null attribute value at index ix that was removed; * null if the attribute value is null. * @exception IndexOutOfBoundsException If ix is outside the specified range. @@ -302,7 +302,7 @@ public interface Attribute extends Cloneable, java.io.Serializable { * IllegalStateException is thrown. * * @param ix The index in the ordered list of attribute values to add the new value. - * 0 <= ix <= size(). + * {@code 0 <= ix <= size()}. * @param attrVal The possibly null attribute value to add; if null, null is * the value added. * @exception IndexOutOfBoundsException If ix is outside the specified range. @@ -322,7 +322,7 @@ public interface Attribute extends Cloneable, java.io.Serializable { * In that case, IllegalStateException is thrown. * * @param ix The index of the value in the ordered list of attribute values. - * 0 <= ix < size(). + * {@code 0 <= ix < size()}. * @param attrVal The possibly null attribute value to use. * If null, 'null' replaces the old value. * @return The possibly null attribute value at index ix that was replaced. diff --git a/src/share/classes/javax/naming/ldap/LdapName.java b/src/share/classes/javax/naming/ldap/LdapName.java index 256f7530c..ce9453706 100644 --- a/src/share/classes/javax/naming/ldap/LdapName.java +++ b/src/share/classes/javax/naming/ldap/LdapName.java @@ -443,7 +443,7 @@ public class LdapName implements Name { * @throws InvalidNameException if suffix is not a valid LDAP * name, or if the addition of the components would violate the * syntax rules of this LDAP name. - * @throws IndexOutOfBoundsException. + * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, Name suffix) @@ -474,7 +474,7 @@ public class LdapName implements Name { * Must be in the range [0,size()]. * * @return The updated name (not a new instance). - * @throws IndexOutOfBoundsException. + * @throws IndexOutOfBoundsException * If posn is outside the specified range. */ public Name addAll(int posn, ListsuffixRdns) { @@ -527,7 +527,7 @@ public class LdapName implements Name { * Must be in the range [0,size()]. * @return The updated LdapName, not a new instance. * Cannot be null. - * @exception IndexOutOfBoundsException. + * @exception IndexOutOfBoundsException * If posn is outside the specified range. * @exception InvalidNameException If adding comp at the * specified position would violate the name's syntax. diff --git a/src/share/classes/javax/naming/ldap/PagedResultsControl.java b/src/share/classes/javax/naming/ldap/PagedResultsControl.java index 07e29b7a3..18c08e599 100644 --- a/src/share/classes/javax/naming/ldap/PagedResultsControl.java +++ b/src/share/classes/javax/naming/ldap/PagedResultsControl.java @@ -36,7 +36,7 @@ import com.sun.jndi.ldap.BerEncoder; * at which it invokes search operations. * * The following code sample shows how the class may be used: - *
+ **{@code * * // Open an LDAP association * LdapContext ctx = new InitialLdapContext(); @@ -89,13 +89,13 @@ import com.sun.jndi.ldap.BerEncoder; * ctx.close(); * ... * - *+ * }* This class implements the LDAPv3 Control for paged-results as defined in * RFC 2696. * * The control's value has the following ASN.1 definition: - *
+ ** * @since 1.5 * @see PagedResultsResponseControl diff --git a/src/share/classes/javax/naming/ldap/SortControl.java b/src/share/classes/javax/naming/ldap/SortControl.java index 486600f72..3aef9fdd9 100644 --- a/src/share/classes/javax/naming/ldap/SortControl.java +++ b/src/share/classes/javax/naming/ldap/SortControl.java @@ -40,7 +40,7 @@ import com.sun.jndi.ldap.BerEncoder; * then the search operation is not performed and an error is returned. *{@code * * realSearchControlValue ::= SEQUENCE { * size INTEGER (0..maxInt), @@ -104,7 +104,7 @@ import com.sun.jndi.ldap.BerEncoder; * cookie OCTET STRING * } * - *+ * }* The following code sample shows how the class may be used: - *
+ **{@code * * // Open an LDAP association * LdapContext ctx = new InitialLdapContext(); @@ -85,7 +85,7 @@ import com.sun.jndi.ldap.BerEncoder; * ctx.close(); * ... * - *+ * }* This class implements the LDAPv3 Request Control for server-side sorting * as defined in diff --git a/src/share/classes/javax/net/ssl/SNIHostName.java b/src/share/classes/javax/net/ssl/SNIHostName.java index 1d02104e1..588a8547e 100644 --- a/src/share/classes/javax/net/ssl/SNIHostName.java +++ b/src/share/classes/javax/net/ssl/SNIHostName.java @@ -295,8 +295,8 @@ public final class SNIHostName extends SNIServerName { * representing the hostname(s) to match * @throws NullPointerException if {@code regex} is * {@code null} - * @throws PatternSyntaxException if the regular expression's syntax - * is invalid + * @throws java.util.regex.PatternSyntaxException if the regular expression's + * syntax is invalid */ public static SNIMatcher createSNIMatcher(String regex) { if (regex == null) { diff --git a/src/share/classes/javax/net/ssl/SSLEngine.java b/src/share/classes/javax/net/ssl/SSLEngine.java index 433361c6a..92e838623 100644 --- a/src/share/classes/javax/net/ssl/SSLEngine.java +++ b/src/share/classes/javax/net/ssl/SSLEngine.java @@ -211,7 +211,7 @@ import java.nio.ReadOnlyBufferException; * that the source buffer has enough room to hold a record (enlarging if * necessary), and then obtain more inbound data. * - *
+ ** *{@code * SSLEngineResult r = engine.unwrap(src, dst); * switch (r.getStatus()) { * BUFFER_OVERFLOW: @@ -238,7 +238,7 @@ import java.nio.ReadOnlyBufferException; * break; * // other cases: CLOSED, OK. * } - *+ * }* Unlike
SSLSocket, all methods of SSLEngine are @@ -442,7 +442,7 @@ public abstract class SSLEngine { ** {@link #wrap(ByteBuffer [], int, int, ByteBuffer) * engine.wrap(new ByteBuffer [] { src }, 0, 1, dst);} - *+ *
ByteBuffer containing outbound application data
@@ -478,7 +478,7 @@ public abstract class SSLEngine {
*
* {@link #wrap(ByteBuffer [], int, int, ByteBuffer)
* engine.wrap(srcs, 0, srcs.length, dst);}
- *
+ *
*
* @param srcs
* an array of ByteBuffers containing the
@@ -597,7 +597,7 @@ public abstract class SSLEngine {
*
* {@link #unwrap(ByteBuffer, ByteBuffer [], int, int)
* engine.unwrap(src, new ByteBuffer [] { dst }, 0, 1);}
- *
+ *
*
* @param src
* a ByteBuffer containing inbound network data.
@@ -633,7 +633,7 @@ public abstract class SSLEngine {
*
* {@link #unwrap(ByteBuffer, ByteBuffer [], int, int)
* engine.unwrap(src, dsts, 0, dsts.length);}
- *
+ *
*
* @param src
* a ByteBuffer containing inbound network data.
diff --git a/src/share/classes/javax/net/ssl/SSLEngineResult.java b/src/share/classes/javax/net/ssl/SSLEngineResult.java
index 45dcddbde..93ad6a7b3 100644
--- a/src/share/classes/javax/net/ssl/SSLEngineResult.java
+++ b/src/share/classes/javax/net/ssl/SSLEngineResult.java
@@ -173,7 +173,7 @@ public class SSLEngineResult {
*
* @throws IllegalArgumentException
* if the status or handshakeStatus
- * arguments are null, or if <bytesConsumed or
+ * arguments are null, or if bytesConsumed or
* bytesProduced is negative.
*/
public SSLEngineResult(Status status, HandshakeStatus handshakeStatus,
diff --git a/src/share/classes/javax/net/ssl/SSLSessionContext.java b/src/share/classes/javax/net/ssl/SSLSessionContext.java
index 61f1ddccc..3459545e9 100644
--- a/src/share/classes/javax/net/ssl/SSLSessionContext.java
+++ b/src/share/classes/javax/net/ssl/SSLSessionContext.java
@@ -90,7 +90,7 @@ public interface SSLSessionContext {
* @param seconds the new session timeout limit in seconds; zero means
* there is no limit.
*
- * @exception IllegalArgumentException if the timeout specified is < 0.
+ * @exception IllegalArgumentException if the timeout specified is {@code < 0}.
* @see #getSessionTimeout
*/
public void setSessionTimeout(int seconds)
@@ -122,7 +122,7 @@ public interface SSLSessionContext {
*
* @param size the new session cache size limit; zero means there is no
* limit.
- * @exception IllegalArgumentException if the specified size is < 0.
+ * @exception IllegalArgumentException if the specified size is {@code < 0}.
* @see #getSessionCacheSize
*/
public void setSessionCacheSize(int size)
diff --git a/src/share/classes/javax/script/ScriptEngineFactory.java b/src/share/classes/javax/script/ScriptEngineFactory.java
index ae064acf9..ca22d1635 100644
--- a/src/share/classes/javax/script/ScriptEngineFactory.java
+++ b/src/share/classes/javax/script/ScriptEngineFactory.java
@@ -144,8 +144,7 @@ public interface ScriptEngineFactory {
* of the supported scripting language. For instance, an implementaton for a Javascript
* engine might be;
* - *
- *
+ * {@code
* public String getMethodCallSyntax(String obj,
* String m, String... args) {
* String ret = obj;
@@ -159,8 +158,7 @@ public interface ScriptEngineFactory {
* ret += ")";
* return ret;
* }
- *
- *
+ * }
* * * @param obj The name representing the object whose method is to be invoked. The @@ -200,17 +198,17 @@ public interface ScriptEngineFactory { * Returns A valid scripting language executable progam with given statements. * For instance an implementation for a PHP engine might be: *
- *
+ * {@code
* public String getProgram(String... statements) {
- * $retval = "<?\n";
+ * $retval = "\n";
* int len = statements.length;
* for (int i = 0; i < len; i++) {
* $retval += statements[i] + ";\n";
* }
- * $retval += "?>";
+ * $retval += "?>";
*
* }
- *
+ * }
*
* @param statements The statements to be executed. May be return values of
* calls to the getMethodCallSyntax and getOutputStatement methods.
diff --git a/src/share/classes/javax/security/auth/callback/CallbackHandler.java b/src/share/classes/javax/security/auth/callback/CallbackHandler.java
index 4c6e9a271..843accac9 100644
--- a/src/share/classes/javax/security/auth/callback/CallbackHandler.java
+++ b/src/share/classes/javax/security/auth/callback/CallbackHandler.java
@@ -79,7 +79,7 @@ public interface CallbackHandler {
* This example code is for guidance only. Many details,
* including proper error handling, are left out for simplicity.
*
- *
+ * {@code
* public void handle(Callback[] callbacks)
* throws IOException, UnsupportedCallbackException {
*
@@ -133,7 +133,7 @@ public interface CallbackHandler {
* private char[] readPassword(InputStream in) throws IOException {
* // insert code to read a user password from the input stream
* }
- *
+ * }
*
* @param callbacks an array of Callback objects provided
* by an underlying security service which contains
diff --git a/src/share/classes/javax/security/sasl/Sasl.java b/src/share/classes/javax/security/sasl/Sasl.java
index 6bdc104b9..bb9fb2eec 100644
--- a/src/share/classes/javax/security/sasl/Sasl.java
+++ b/src/share/classes/javax/security/sasl/Sasl.java
@@ -278,7 +278,7 @@ public class Sasl {
*
* This method uses the
JCA Security Provider Framework, described in the
- * "Java Cryptography Architecture API Specification & Reference", for
+ * "Java Cryptography Architecture API Specification & Reference", for
* locating and selecting a SaslClient implementation.
*
* First, it
@@ -303,7 +303,7 @@ public class Sasl {
* SaslClientFactory.DIGEST-MD5 com.wiz.sasl.digest.ClientFactory
** See the - * "Java Cryptography Architecture API Specification & Reference" + * "Java Cryptography Architecture API Specification & Reference" * for information about how to install and configure security service * providers. * @@ -428,7 +428,7 @@ public class Sasl { * This method uses the JCA Security Provider Framework, * described in the - * "Java Cryptography Architecture API Specification & Reference", for + * "Java Cryptography Architecture API Specification & Reference", for * locating and selecting a SaslServer implementation. * * First, it @@ -453,7 +453,7 @@ public class Sasl { * SaslServerFactory.DIGEST-MD5 com.wiz.sasl.digest.ServerFactory *
* See the - * "Java Cryptography Architecture API Specification & Reference" + * "Java Cryptography Architecture API Specification & Reference" * for information about how to install and configure security * service providers. * diff --git a/src/share/classes/javax/security/sasl/SaslClient.java b/src/share/classes/javax/security/sasl/SaslClient.java index 010246c4b..10f8d3dc3 100644 --- a/src/share/classes/javax/security/sasl/SaslClient.java +++ b/src/share/classes/javax/security/sasl/SaslClient.java @@ -38,13 +38,13 @@ package javax.security.sasl; *
* Here's an example of how an LDAP library might use a SaslClient. * It first gets an instance of a SaslClient: - *
* It can then proceed to use the client for authentication. * For example, an LDAP library might use the client as follows: - *+ *+ *}{@code * SaslClient sc = Sasl.createSaslClient(mechanisms, * authorizationId, protocol, serverName, props, callbackHandler); - *
* * If the mechanism has an initial response, the library invokes * evaluateChallenge() with an empty diff --git a/src/share/classes/javax/security/sasl/SaslServer.java b/src/share/classes/javax/security/sasl/SaslServer.java index 54ba68434..ec5d20a23 100644 --- a/src/share/classes/javax/security/sasl/SaslServer.java +++ b/src/share/classes/javax/security/sasl/SaslServer.java @@ -47,7 +47,7 @@ package javax.security.sasl; * For example, suppose the LDAP server received an LDAP BIND request * containing the name of the SASL mechanism and an (optional) initial * response. It then might use the server as follows: - *+ *+ *}{@code * // Get initial response and send to server * byte[] response = (sc.hasInitialResponse() ? sc.evaluateChallenge(new byte[0]) : * null); @@ -74,7 +74,7 @@ package javax.security.sasl; * ldap.out = new SecureOutputStream(sc, ldap.out); * } * } - *
* * @since 1.5 * diff --git a/src/share/classes/javax/smartcardio/ResponseAPDU.java b/src/share/classes/javax/smartcardio/ResponseAPDU.java index 94859e830..7caa52eb5 100644 --- a/src/share/classes/javax/smartcardio/ResponseAPDU.java +++ b/src/share/classes/javax/smartcardio/ResponseAPDU.java @@ -121,7 +121,7 @@ public final class ResponseAPDU implements java.io.Serializable { * Returns the value of the status bytes SW1 and SW2 as a single * status word SW. * It is defined as - *+ *+ *}{@code * while (!ss.isComplete()) { * try { * byte[] challenge = ss.evaluateResponse(response); @@ -75,7 +75,7 @@ package javax.security.sasl; * ldap.out = new SecureOutputStream(ss, ldap.out); * } * } - *
(getSW1() << 8) | getSW2().
+ * {@code (getSW1() << 8) | getSW2()}
*
* @return the value of the status word SW.
*/
diff --git a/src/share/classes/javax/sql/DataSource.java b/src/share/classes/javax/sql/DataSource.java
index d4d9d70dd..8235d2a27 100644
--- a/src/share/classes/javax/sql/DataSource.java
+++ b/src/share/classes/javax/sql/DataSource.java
@@ -82,7 +82,7 @@ public interface DataSource extends CommonDataSource, Wrapper {
*
* @return a connection to the data source
* @exception SQLException if a database access error occurs
- * @throws SQLTimeoutException when the driver has determined that the
+ * @throws java.sql.SQLTimeoutException when the driver has determined that the
* timeout value specified by the {@code setLoginTimeout} method
* has been exceeded and has at least tried to cancel the
* current database connection attempt
@@ -98,7 +98,7 @@ public interface DataSource extends CommonDataSource, Wrapper {
* @param password the user's password
* @return a connection to the data source
* @exception SQLException if a database access error occurs
- * @throws SQLTimeoutException when the driver has determined that the
+ * @throws java.sql.SQLTimeoutException when the driver has determined that the
* timeout value specified by the {@code setLoginTimeout} method
* has been exceeded and has at least tried to cancel the
* current database connection attempt
diff --git a/src/share/classes/javax/sql/rowset/BaseRowSet.java b/src/share/classes/javax/sql/rowset/BaseRowSet.java
index 1019b8de1..a3b13fa0f 100644
--- a/src/share/classes/javax/sql/rowset/BaseRowSet.java
+++ b/src/share/classes/javax/sql/rowset/BaseRowSet.java
@@ -109,10 +109,10 @@ import javax.sql.rowset.serial.*;
* CachedRowSetTM
* object crs might have its command property set. Note that if a
* tool is used to set properties, this is the code that the tool would use.
- *
+ * {@code
* crs.setCommand("SELECT FIRST_NAME, LAST_NAME, ADDRESS FROM CUSTOMERS" +
* "WHERE CREDIT_LIMIT > ? AND REGION = ?");
- *
+ * }
*
* In this example, the values for CREDIT_LIMIT and
* REGION are placeholder parameters, which are indicated with a
@@ -129,16 +129,16 @@ import javax.sql.rowset.serial.*;
*
* The following code fragment demonstrates * setting the two parameters in the query from the previous example. - *
+ * {@code
* crs.setInt(1, 5000);
* crs.setString(2, "West");
- *
+ * }
* If the execute method is called at this point, the query
* sent to the DBMS will be:
- *
+ * {@code
* "SELECT FIRST_NAME, LAST_NAME, ADDRESS FROM CUSTOMERS" +
* "WHERE CREDIT_LIMIT > 5000 AND REGION = 'West'"
- *
+ * }
* NOTE: Setting Array, Clob, Blob and
* Ref objects as a command parameter, stores these values as
* SerialArray, SerialClob, SerialBlob
@@ -158,7 +158,7 @@ import javax.sql.rowset.serial.*;
* When the method execute is called, the values in the
* Hashtable object are substituted for the appropriate placeholder
* parameters in the command.
- * + *
* A call to the method getParams returns the values stored in the
* Hashtable object as an array of Object instances.
* An element in this array may be a simple Object instance or an
@@ -2535,7 +2535,7 @@ public abstract class BaseRowSet implements Serializable, Cloneable {
* specific abstract data types.
*
* The parameter value set by this method is stored internally and
- * will be supplied as the appropriate parameter in this RowSetRowSet
* object's command when the method execute is called.
* Methods such as execute and populate must be
* provided in any class that extends this class and implements one or
diff --git a/src/share/classes/javax/sql/rowset/CachedRowSet.java b/src/share/classes/javax/sql/rowset/CachedRowSet.java
index 786122391..1a8517520 100644
--- a/src/share/classes/javax/sql/rowset/CachedRowSet.java
+++ b/src/share/classes/javax/sql/rowset/CachedRowSet.java
@@ -118,7 +118,7 @@ import javax.sql.rowset.spi.*;
*
* There are two ways for a CachedRowSet object to specify which
* SyncProvider object it will use.
- *
CachedRowSet
* object crs2 that is initialized with default values except that its
@@ -135,7 +135,7 @@ import javax.sql.rowset.spi.*;
*
* crs.setSyncProvider("com.fred.providers.HighAvailabilityProvider");
*
- * SyncFactory and SyncProvider for
* more details.
*
@@ -426,10 +426,10 @@ import javax.sql.rowset.spi.*;
* The following code fragment illustrates how the CachedRowSet
* object crs might have its command property set. Note that if a
* tool is used to set properties, this is the code that the tool would use.
- *
+ * {@code
* crs.setCommand("SELECT FIRST_NAME, LAST_NAME, ADDRESS FROM CUSTOMERS " +
* "WHERE CREDIT_LIMIT > ? AND REGION = ?");
- *
+ * }
*
* The values that will be used to set the command's placeholder parameters are
* contained in the RowSet object's params field, which is a
@@ -457,7 +457,7 @@ import javax.sql.rowset.spi.*;
* The following code fragment gives an idea of how the reader
* does this, after obtaining the Connection object
* con.
- *
+ * {@code
* PreparedStatement pstmt = con.prepareStatement(crs.getCommand());
* reader.decodeParams();
* // decodeParams figures out which setter methods to use and does something
@@ -465,16 +465,16 @@ import javax.sql.rowset.spi.*;
* // for (i = 0; i < params.length; i++) {
* // pstmt.setObject(i + 1, params[i]);
* // }
- *
+ * }
*
- * At this point, the command for crs is the query "SELECT
+ * At this point, the command for . After the crs is the query {@code "SELECT
* FIRST_NAME, LAST_NAME, ADDRESS FROM CUSTOMERS WHERE CREDIT_LIMIT > 5000
- * AND REGION = "West"readData method executes
+ * AND REGION = "West"}. After the readData method executes
* this command with the following line of code, it will have the data from
* rs with which to populate crs.
- *
+ * {@code
* ResultSet rs = pstmt.executeQuery();
- *
+ * }
*
* The preceding code fragments give an idea of what goes on behind the
* scenes; they would not appear in an application, which would not invoke
@@ -484,13 +484,13 @@ import javax.sql.rowset.spi.*;
* the command. Simply by calling the execute method,
* crs populates itself with the requested data from the
* table CUSTOMERS.
- *
+ * {@code
* crs.setCommand("SELECT FIRST_NAME, LAST_NAME, ADDRESS FROM CUSTOMERS" +
* "WHERE CREDIT_LIMIT > ? AND REGION = ?");
* crs.setInt(1, 5000);
* crs.setString(2, "West");
* crs.execute();
- *
+ * }
*
* CachedRowSet object stores data in memory,
diff --git a/src/share/classes/javax/sql/rowset/Predicate.java b/src/share/classes/javax/sql/rowset/Predicate.java
index a9672c98e..eb747602e 100644
--- a/src/share/classes/javax/sql/rowset/Predicate.java
+++ b/src/share/classes/javax/sql/rowset/Predicate.java
@@ -53,8 +53,7 @@ import java.sql.*;
* and application motivated implementations of Predicate to emerge.
* * A sample implementation would look something like this: - *
- *
+ * {@code
* public class Range implements Predicate {
*
* private Object lo[];
@@ -79,19 +78,19 @@ import java.sql.*;
* if ((rs.getObject(idx[i]) >= lo[i]) &&
* (rs.getObject(idx[i]) >= hi[i]) {
* bool1 = true; // within filter constraints
- * } else {
- * bool2 = true; // outside of filter constraints
+ * } else {
+ * bool2 = true; // outside of filter constraints
+ * }
* }
- * }
*
- * if (bool2) {
- * return false;
- * } else {
- * return true;
+ * if (bool2) {
+ * return false;
+ * } else {
+ * return true;
+ * }
* }
* }
- *
- *
+ * }
*
* The example above implements a simple range predicate. Note, that
* implementations should but are not required to provider String
diff --git a/src/share/classes/javax/sql/rowset/RowSetMetaDataImpl.java b/src/share/classes/javax/sql/rowset/RowSetMetaDataImpl.java
index e1b78a920..a5c998170 100644
--- a/src/share/classes/javax/sql/rowset/RowSetMetaDataImpl.java
+++ b/src/share/classes/javax/sql/rowset/RowSetMetaDataImpl.java
@@ -159,7 +159,7 @@ public class RowSetMetaDataImpl implements RowSetMetaData, Serializable {
* @param property true if the given column is
* automatically incremented; false
* otherwise
- * @throws SQLException if a database access error occurs or
+ * @throws SQLException if a database access error occurs or
* the given index is out of bounds
*/
public void setAutoIncrement(int columnIndex, boolean property) throws SQLException {
@@ -195,7 +195,7 @@ public class RowSetMetaDataImpl implements RowSetMetaData, Serializable {
* value can be used in a WHERE clause;
* false otherwise
*
- * @throws SQLException if a database access error occurs or
+ * @throws SQLException if a database access error occurs or
* the given column number is out of bounds
*/
public void setSearchable(int columnIndex, boolean property)
@@ -212,7 +212,7 @@ public class RowSetMetaDataImpl implements RowSetMetaData, Serializable {
* must be between 1 and the number of columns,
* inclusive between 1 and the number of columns, inclusive
* @param property true if the value is a cash value; false otherwise.
- * @throws SQLException if a database access error occurs
+ * @throws SQLException if a database access error occurs
* or the given column number is out of bounds
*/
public void setCurrency(int columnIndex, boolean property)
@@ -233,7 +233,7 @@ public class RowSetMetaDataImpl implements RowSetMetaData, Serializable {
* columnNullable, or
* columnNullableUnknown
*
- * @throws SQLException if a database access error occurs,
+ * @throws SQLException if a database access error occurs,
* the given column number is out of bounds, or the value supplied
* for the property parameter is not one of the following
* constants:
diff --git a/src/share/classes/javax/sql/rowset/spi/SyncFactory.java b/src/share/classes/javax/sql/rowset/spi/SyncFactory.java
index 10e6158e7..e9b10bdcb 100644
--- a/src/share/classes/javax/sql/rowset/spi/SyncFactory.java
+++ b/src/share/classes/javax/sql/rowset/spi/SyncFactory.java
@@ -627,8 +627,6 @@ public class SyncFactory {
* required
* @throws java.lang.SecurityException if a security manager exists and its
* {@code checkPermission} method denies calling {@code setLogger}
- * @throws java.util.logging.LoggingPermission if a security manager exists and its
- * {@code checkPermission} method denies calling {@code setLevel}
* @throws NullPointerException if the logger is null
* @see SecurityManager#checkPermission
* @see LoggingPermission
diff --git a/src/share/classes/javax/sql/rowset/spi/SyncResolver.java b/src/share/classes/javax/sql/rowset/spi/SyncResolver.java
index 87b5393a7..c1180cf92 100644
--- a/src/share/classes/javax/sql/rowset/spi/SyncResolver.java
+++ b/src/share/classes/javax/sql/rowset/spi/SyncResolver.java
@@ -193,7 +193,7 @@ import java.sql.SQLException;
* code fragment, the value in crs is the one set as the resolved value, which means
* that it will be used to overwrite the conflict value in the data source.
*
- *
+ * {@code
* try {
*
* crs.acceptChanges(con);
@@ -202,8 +202,8 @@ import java.sql.SQLException;
*
* SyncResolver resolver = spe.getSyncResolver();
*
- * Object crsValue; // value in the RowSet object
- * Object resolverValue: // value in the SyncResolver object
+ * Object crsValue; // value in the RowSet object
+ * Object resolverValue: // value in the SyncResolver object
* Object resolvedValue: // value to be persisted
*
* while(resolver.nextConflict()) {
@@ -227,7 +227,7 @@ import java.sql.SQLException;
* }
* }
* }
- *
+ * }
* @author Jonathan Bruce
*/
diff --git a/src/share/classes/javax/xml/crypto/dsig/Manifest.java b/src/share/classes/javax/xml/crypto/dsig/Manifest.java
index 7df2c2306..8c7662640 100644
--- a/src/share/classes/javax/xml/crypto/dsig/Manifest.java
+++ b/src/share/classes/javax/xml/crypto/dsig/Manifest.java
@@ -35,15 +35,15 @@ import java.util.List;
* the
* W3C Recommendation for XML-Signature Syntax and Processing.
* The XML Schema Definition is defined as:
- *
- * <element name="Manifest" type="ds:ManifestType"/>
- * <complexType name="ManifestType">
- * <sequence>
- * <element ref="ds:Reference" maxOccurs="unbounded"/>
- * </sequence>
- * <attribute name="Id" type="ID" use="optional"/>
- * </complexType>
- *
+ * {@code
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * }
*
* A Manifest instance may be created by invoking
* one of the {@link XMLSignatureFactory#newManifest newManifest}
--
GitLab