# HG changeset patch # User alanb # Date 1370865512 -3600 # Node ID edb590d448c5a88ac7d24699aa2b202797262a3d # Parent 889970e5b728bf2ecfd03253bb3264db5c769dff 8016217: More javadoc warnings Reviewed-by: lancea, chegar, psandoz diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/io/BufferedInputStream.java --- a/jdk/src/share/classes/java/io/BufferedInputStream.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/io/BufferedInputStream.java Mon Jun 10 12:58:32 2013 +0100 @@ -185,7 +185,7 @@ * * @param in the underlying input stream. * @param size the buffer size. - * @exception IllegalArgumentException if size <= 0. + * @exception IllegalArgumentException if {@code size <= 0}. */ public BufferedInputStream(InputStream in, int size) { super(in); diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/io/BufferedReader.java --- a/jdk/src/share/classes/java/io/BufferedReader.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/io/BufferedReader.java Mon Jun 10 12:58:32 2013 +0100 @@ -95,7 +95,7 @@ * @param in A Reader * @param sz Input-buffer size * - * @exception IllegalArgumentException If sz is <= 0 + * @exception IllegalArgumentException If {@code sz <= 0} */ public BufferedReader(Reader in, int sz) { super(in); @@ -484,7 +484,7 @@ * whose size is no smaller than limit. * Therefore large values should be used with care. * - * @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/io/BufferedWriter.java --- a/jdk/src/share/classes/java/io/BufferedWriter.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/io/BufferedWriter.java Mon Jun 10 12:58:32 2013 +0100 @@ -95,7 +95,7 @@ * @param out A Writer * @param sz Output-buffer size, a positive integer * - * @exception IllegalArgumentException If sz is <= 0 + * @exception IllegalArgumentException If {@code sz <= 0} */ public BufferedWriter(Writer out, int sz) { super(out); diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/io/Console.java --- a/jdk/src/share/classes/java/io/Console.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/io/Console.java Mon Jun 10 12:58:32 2013 +0100 @@ -75,7 +75,7 @@ * manually zero the returned character array after processing to minimize the * lifetime of sensitive data in memory. * - *
* * @author Xueming Shen * @since 1.6 diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/io/PipedInputStream.java --- a/jdk/src/share/classes/java/io/PipedInputStream.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/io/PipedInputStream.java Mon Jun 10 12:58:32 2013 +0100 @@ -117,7 +117,7 @@ * @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 @@ * ... * 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 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/io/PipedReader.java
--- a/jdk/src/share/classes/java/io/PipedReader.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/io/PipedReader.java Mon Jun 10 12:58:32 2013 +0100
@@ -91,7 +91,7 @@
* @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 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/io/PrintStream.java
--- a/jdk/src/share/classes/java/io/PrintStream.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/io/PrintStream.java Mon Jun 10 12:58:32 2013 +0100
@@ -851,7 +851,7 @@
* 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 @@
* 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 @@
* 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 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/io/PushbackInputStream.java
--- a/jdk/src/share/classes/java/io/PushbackInputStream.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/io/PushbackInputStream.java Mon Jun 10 12:58:32 2013 +0100
@@ -85,7 +85,7 @@
*
* @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/io/PushbackReader.java
--- a/jdk/src/share/classes/java/io/PushbackReader.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/io/PushbackReader.java Mon Jun 10 12:58:32 2013 +0100
@@ -47,7 +47,7 @@
*
* @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/io/StringReader.java
--- a/jdk/src/share/classes/java/io/StringReader.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/io/StringReader.java Mon Jun 10 12:58:32 2013 +0100
@@ -163,7 +163,7 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/Character.java
--- a/jdk/src/share/classes/java/lang/Character.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/lang/Character.java Mon Jun 10 12:58:32 2013 +0100
@@ -4782,9 +4782,9 @@
* Unicode surrogate pair.
* This method is equivalent to the expression: - *
* * @param high the high-surrogate code value to be tested * @param low the low-surrogate code value to be tested diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/ClassLoader.java --- a/jdk/src/share/classes/java/lang/ClassLoader.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/lang/ClassLoader.java Mon Jun 10 12:58:32 2013 +0100 @@ -702,7 +702,7 @@ * 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. + * NoClassDefFoundError NoClassDefFoundError} will be thrown. * * @param name * The expected binary name of the class, or diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/Comparable.java --- a/jdk/src/share/classes/java/lang/Comparable.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/lang/Comparable.java Mon Jun 10 12:58:32 2013 +0100 @@ -56,7 +56,7 @@ * method.+ *+ * }{@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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/Double.java --- a/jdk/src/share/classes/java/lang/Double.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/lang/Double.java Mon Jun 10 12:58:32 2013 +0100 @@ -917,13 +917,13 @@ *
In all other cases, let s, e, and m be three * values that can be computed from the argument: * - *
* * Then the floating-point result equals the value of the mathematical * expression s·m·2e-1075. diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/Float.java --- a/jdk/src/share/classes/java/lang/Float.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/lang/Float.java Mon Jun 10 12:58:32 2013 +0100 @@ -821,13 +821,13 @@ *- * 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; - *
In all other cases, let s, e, and m be three * values that can be computed from the argument: * - *
* * Then the floating-point result equals the value of the mathematical * expression s·m·2e-150. diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/StackTraceElement.java --- a/jdk/src/share/classes/java/lang/StackTraceElement.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/lang/StackTraceElement.java Mon Jun 10 12:58:32 2013 +0100 @@ -181,12 +181,12 @@ * {@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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/instrument/Instrumentation.java --- a/jdk/src/share/classes/java/lang/instrument/Instrumentation.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/lang/instrument/Instrumentation.java Mon Jun 10 12:58:32 2013 +0100 @@ -593,24 +593,28 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/invoke/MethodHandle.java --- a/jdk/src/share/classes/java/lang/invoke/MethodHandle.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/lang/invoke/MethodHandle.java Mon Jun 10 12:58:32 2013 +0100 @@ -251,7 +251,7 @@ * *
* 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 @@ * (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 @@ mh = lookup.findVirtual(java.io.PrintStream.class, "println", mt); mh.invokeExact(System.out, "Hello, world."); // invokeExact(Ljava/io/PrintStream;Ljava/lang/String;)V - *
* Here are some simple examples of array-spreading method handles: - *
* @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 @@ * 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 @@ 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())); - *
* Here are some examples of array-collecting method handles: - *
* @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 @@ * 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 @@ .findStatic(Arrays.class, "toString", methodType(String.class, long[].class)) .asCollector(long[].class, 1); assertEquals("[123]", (String) longsToString.invokeExact((long)123)); - *
* Here is an example, of a list-making variable arity method handle: - *
*+ *+ * }{@code MethodHandle deepToString = publicLookup() .findStatic(Arrays.class, "deepToString", methodType(String.class, Object[].class)); MethodHandle ts1 = deepToString.asVarargsCollector(Object[].class); @@ -1063,7 +1063,7 @@ List ls = (List) asList.invoke((Object)argv); assertEquals(1, ls.size()); assertEquals("[three, thee, tee]", Arrays.toString((Object[])ls.get(0))); - *
* Discussion: * These rules are designed as a dynamically-typed variation @@ -1134,7 +1134,7 @@ * a previous argument to {@code asVarargsCollector}. *
* Here is an example, of a list-making variable arity method handle: - *
* * @return a new method handle which accepts only a fixed number of arguments * @see #asVarargsCollector diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/invoke/MethodHandles.java --- a/jdk/src/share/classes/java/lang/invoke/MethodHandles.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/lang/invoke/MethodHandles.java Mon Jun 10 12:58:32 2013 +0100 @@ -1593,7 +1593,7 @@ * 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]", 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/management/MemoryUsage.java --- a/jdk/src/share/classes/java/lang/management/MemoryUsage.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/lang/management/MemoryUsage.java Mon Jun 10 12:58:32 2013 +0100 @@ -72,8 +72,8 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/management/RuntimeMXBean.java --- a/jdk/src/share/classes/java/lang/management/RuntimeMXBean.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/lang/management/RuntimeMXBean.java Mon Jun 10 12:58:32 2013 +0100 @@ -308,7 +308,7 @@ * *+ *+ * }{@code import static java.lang.invoke.MethodHandles.*; import static java.lang.invoke.MethodType.*; ... @@ -1609,7 +1609,7 @@ MethodHandle twice = permuteArguments(add, intfn1, 0, 0); assert(twice.type().equals(intfn1)); assert((int)twice.invokeExact(21) == 42); - *
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/net/DatagramSocket.java
--- a/jdk/src/share/classes/java/net/DatagramSocket.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/net/DatagramSocket.java Mon Jun 10 12:58:32 2013 +0100
@@ -334,12 +334,12 @@
}
/**
- * 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 @@
* 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 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/net/URI.java
--- a/jdk/src/share/classes/java/net/URI.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/net/URI.java Mon Jun 10 12:58:32 2013 +0100
@@ -258,7 +258,7 @@
*
- * The mapped type of Map
diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/lang/management/ThreadMXBean.java
--- a/jdk/src/share/classes/java/lang/management/ThreadMXBean.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/lang/management/ThreadMXBean.java Mon Jun 10 12:58:32 2013 +0100
@@ -198,7 +198,7 @@
* 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 @@
* 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 @@
* 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 @@
*
* @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 @@
* 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 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/net/CookieManager.java
--- a/jdk/src/share/classes/java/net/CookieManager.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/net/CookieManager.java Mon Jun 10 12:58:32 2013 +0100
@@ -41,7 +41,7 @@
*
*
- *
+ *
* {@code
* use
* CookieHandler <------- HttpURLConnection
* ^
@@ -58,7 +58,7 @@
* | 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/net/HttpURLConnection.java
--- a/jdk/src/share/classes/java/net/HttpURLConnection.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/net/HttpURLConnection.java Mon Jun 10 12:58:32 2013 +0100
@@ -109,7 +109,7 @@
* 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 n
th header field,
* or null
if the key does not exist.
*/
@@ -260,7 +260,7 @@
* {@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 n
th header field,
* or null
if the value does not exist.
* @see java.net.HttpURLConnection#getHeaderFieldKey(int)
diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/net/InetSocketAddress.java
--- a/jdk/src/share/classes/java/net/InetSocketAddress.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/net/InetSocketAddress.java Mon Jun 10 12:58:32 2013 +0100
@@ -389,7 +389,7 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/net/MulticastSocket.java
--- a/jdk/src/share/classes/java/net/MulticastSocket.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/net/MulticastSocket.java Mon Jun 10 12:58:32 2013 +0100
@@ -201,7 +201,7 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/net/ServerSocket.java
--- a/jdk/src/share/classes/java/net/ServerSocket.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/net/ServerSocket.java Mon Jun 10 12:58:32 2013 +0100
@@ -316,7 +316,7 @@
* 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 @@
* 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 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/net/Socket.java
--- a/jdk/src/share/classes/java/net/Socket.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/net/Socket.java Mon Jun 10 12:58:32 2013 +0100
@@ -1086,7 +1086,7 @@
* 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 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/net/StandardSocketOptions.java
--- a/jdk/src/share/classes/java/net/StandardSocketOptions.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/net/StandardSocketOptions.java Mon Jun 10 12:58:32 2013 +0100
@@ -277,8 +277,8 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/net/URLConnection.java
--- a/jdk/src/share/classes/java/net/URLConnection.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/net/URLConnection.java Mon Jun 10 12:58:32 2013 +0100
@@ -662,7 +662,7 @@
* Returns the key for the reserved
* All punct characters together with those in the string
* "?/[]@" n
th 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 n
th header field,
* or null
if there are fewer than n+1
* fields.
@@ -680,7 +680,7 @@
* {@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 n
th header field
* or null
if there are fewer than n+1
fields
* @see java.net.URLConnection#getHeaderFieldKey(int)
diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/nio/X-Buffer.java.template
--- a/jdk/src/share/classes/java/nio/X-Buffer.java.template Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/nio/X-Buffer.java.template Mon Jun 10 12:58:32 2013 +0100
@@ -652,9 +652,10 @@
* 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. @@ -874,9 +876,10 @@ * dst.put(src, start, end) has exactly the same effect * as the loop * - *{@code * for (int i = off; i < off + len; i++) - * dst.put(a[i]);+ * dst.put(a[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 @@ * write was incomplete. The following loop, for example, copies bytes * from one channel to another via the buffer buf: * - *{@code * for (int i = start; i < end; i++) - * dst.put(src.charAt(i));+ * dst.put(src.charAt(i)); + * }
* *- * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/nio/channels/SelectableChannel.java --- a/jdk/src/share/classes/java/nio/channels/SelectableChannel.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/nio/channels/SelectableChannel.java Mon Jun 10 12:58:32 2013 +0100 @@ -208,7 +208,7 @@ * @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 @@ * * @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/nio/channels/SelectionKey.java --- a/jdk/src/share/classes/java/nio/channels/SelectionKey.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/nio/channels/SelectionKey.java Mon Jun 10 12:58:32 2013 +0100 @@ -191,7 +191,7 @@ * @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 @@ *{@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 + * } * }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 @@ *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 @@ *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 @@ *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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/nio/charset/Charset-X-Coder.java.template --- a/jdk/src/share/classes/java/nio/charset/Charset-X-Coder.java.template Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/nio/charset/Charset-X-Coder.java.template Mon Jun 10 12:58:32 2013 +0100 @@ -260,7 +260,7 @@ * 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 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/nio/file/Path.java --- a/jdk/src/share/classes/java/nio/file/Path.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/nio/file/Path.java Mon Jun 10 12:58:32 2013 +0100 @@ -64,7 +64,7 @@ * 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 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/security/KeyStore.java
--- a/jdk/src/share/classes/java/security/KeyStore.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/security/KeyStore.java Mon Jun 10 12:58:32 2013 +0100
@@ -317,7 +317,7 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/security/SecureRandom.java
--- a/jdk/src/share/classes/java/security/SecureRandom.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/security/SecureRandom.java Mon Jun 10 12:58:32 2013 +0100
@@ -466,7 +466,7 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/security/cert/CertPathValidatorException.java
--- a/jdk/src/share/classes/java/security/cert/CertPathValidatorException.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/security/cert/CertPathValidatorException.java Mon Jun 10 12:58:32 2013 +0100
@@ -141,8 +141,8 @@
* 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 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/security/cert/CertificateFactory.java
--- a/jdk/src/share/classes/java/security/cert/CertificateFactory.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/security/cert/CertificateFactory.java Mon Jun 10 12:58:32 2013 +0100
@@ -65,7 +65,7 @@
* 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 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/security/cert/X509Extension.java --- a/jdk/src/share/classes/java/security/cert/X509Extension.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/security/cert/X509Extension.java Mon Jun 10 12:58:32 2013 +0100 @@ -84,12 +84,12 @@ * * 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 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/security/spec/EllipticCurve.java
--- a/jdk/src/share/classes/java/security/spec/EllipticCurve.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/security/spec/EllipticCurve.java Mon Jun 10 12:58:32 2013 +0100
@@ -184,9 +184,9 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/sql/DatabaseMetaData.java
--- a/jdk/src/share/classes/java/sql/DatabaseMetaData.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/sql/DatabaseMetaData.java Mon Jun 10 12:58:32 2013 +0100
@@ -1218,21 +1218,21 @@
*
* Each procedure description has the the following columns: *
null
)
- * null
)
- * null
)
+ * null
)
+ * @@ -1297,11 +1297,11 @@ *
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 @@ *
* 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 @@
*
* The catalog column is: *
ResultSet
object in which each row has a
@@ -1560,7 +1560,7 @@
*
* 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 @@ * *
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 @@
* 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 @@ * *
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 @@
* 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: - *
+ ** so conditional logic such as - *{@code * ROWID_UNSUPPORTED < ROWID_VALID_OTHER < ROWID_VALID_TRANSACTION * < ROWID_VALID_SESSION < ROWID_VALID_FOREVER - *+ * }
+ ** 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 @@ * *{@code * if (metadata.getRowIdLifetime() > DatabaseMetaData.ROWID_VALID_TRANSACTION) - *+ * }
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 @@
* 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 @@
*
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/sql/ResultSet.java
--- a/jdk/src/share/classes/java/sql/ResultSet.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/sql/ResultSet.java Mon Jun 10 12:58:32 2013 +0100
@@ -1350,7 +1350,7 @@
* @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/sql/Statement.java
--- a/jdk/src/share/classes/java/sql/Statement.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/sql/Statement.java Mon Jun 10 12:58:32 2013 +0100
@@ -144,7 +144,7 @@
* @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 @@
* @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 @@
* 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 @@
* object(s) obtained with the method getResultSet
.
*
*
There are no more results when the following is true: - *
+ ** * @return{@code * // stmt is a Statement object * ((stmt.getMoreResults() == false) && (stmt.getUpdateCount() == -1)) - *+ * }
true
if the next result is a ResultSet
* object; false
if it is an update count or there are
@@ -452,7 +452,7 @@
* @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 @@
* true
if the next result is a ResultSet
object.
*
* There are no more results when the following is true: - *
+ ** * @param current one of the following{@code * // stmt is a Statement object * ((stmt.getMoreResults(current) == false) && (stmt.getUpdateCount() == -1)) - *+ * }
Statement
* constants indicating what should happen to current
@@ -1107,7 +1107,7 @@
* @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/text/CharacterIterator.java
--- a/jdk/src/share/classes/java/text/CharacterIterator.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/text/CharacterIterator.java Mon Jun 10 12:58:32 2013 +0100
@@ -62,27 +62,27 @@
* Examples:
* * Traverse the text from start to finish - *
+ ** * Traverse the text backwards, from end to start - *{@code * public void traverseForward(CharacterIterator iter) { * for(char c = iter.first(); c != CharacterIterator.DONE; c = iter.next()) { * 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 traverseBackward(CharacterIterator iter) { * for(char c = iter.last(); c != CharacterIterator.DONE; c = iter.previous()) { * processChar(c); * } * } - *+ * }
+ ** * @see StringCharacterIterator * @see AttributedCharacterIterator diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/text/ChoiceFormat.java --- a/jdk/src/share/classes/java/text/ChoiceFormat.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/text/ChoiceFormat.java Mon Jun 10 12:58:32 2013 +0100 @@ -376,7 +376,7 @@ /** * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/text/Collator.java --- a/jdk/src/share/classes/java/text/Collator.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/text/Collator.java Mon Jun 10 12:58:32 2013 +0100 @@ -72,14 +72,14 @@ * The following example shows how to compare two strings using * the{@code * public void traverseOut(CharacterIterator iter, int pos) { * for (char c = iter.setIndex(pos); * c != CharacterIterator.DONE && notBoundary(c); @@ -96,7 +96,7 @@ * int start = iter.getIndex(); * processSection(start, end); * } - *+ * }
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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/Calendar.java
--- a/jdk/src/share/classes/java/util/Calendar.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/util/Calendar.java Mon Jun 10 12:58:32 2013 +0100
@@ -2681,9 +2681,9 @@
* Returns whether this Calendar
represents a time
* before the time represented by the specified
* 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 @@
* Returns whether this Calendar
represents a time
* after the time represented by the specified
* Object
. This method is equivalent to:
- * + * } * if and only if+ *{@code * compareTo(when) > 0 - *
when
is a Calendar
* instance. Otherwise, the method returns false
.
*
diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/Collections.java
--- a/jdk/src/share/classes/java/util/Collections.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/java/util/Collections.java Mon Jun 10 12:58:32 2013 +0100
@@ -924,9 +924,9 @@
* 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()})
*
* 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 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/Date.java --- a/jdk/src/share/classes/java/util/Date.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/Date.java Mon Jun 10 12:58:32 2013 +0100 @@ -984,8 +984,9 @@ * 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: - *
+ *- * (int)(this.getTime()^(this.getTime() >>> 32))
* * @return a hash code value for this object. */ @@ -1085,7 +1086,7 @@ /** * 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*
- d is the day of the month (1 through 31), diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/LinkedHashMap.java --- a/jdk/src/share/classes/java/util/LinkedHashMap.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/LinkedHashMap.java Mon Jun 10 12:58:32 2013 +0100 @@ -437,13 +437,13 @@ *
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. - *
+ ** *{@code * private static final int MAX_ENTRIES = 100; * * protected boolean removeEldestEntry(Map.Entry eldest) { * return size() > MAX_ENTRIES; * } - *+ * }This method typically does not modify the map in any way, * instead allowing the map to modify itself as directed by its diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/Random.java --- a/jdk/src/share/classes/java/util/Random.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/Random.java Mon Jun 10 12:58:32 2013 +0100 @@ -372,7 +372,7 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/ResourceBundle.java --- a/jdk/src/share/classes/java/util/ResourceBundle.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/ResourceBundle.java Mon Jun 10 12:58:32 2013 +0100 @@ -2323,9 +2323,9 @@ * is returned. And if the resource bundles for the "ja" and * ""
Locale
s are found, then the runtime resource * lookup path (parent chain) is: - *+ ** * @param baseName * the base name of the resource bundle, a fully diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/Scanner.java --- a/jdk/src/share/classes/java/util/Scanner.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/Scanner.java Mon Jun 10 12:58:32 2013 +0100 @@ -49,47 +49,51 @@ * *{@code * Messages_ja -> Messages - *+ * }For example, this code allows a user to read a number from * System.in: - *
* *+ *+ * }{@code * Scanner sc = new Scanner(System.in); * int i = sc.nextInt(); - *As another example, this code allows
long
types to be * assigned from entries in a filemyNumbers
: - ** *+ *+ * } + * }{@code * Scanner sc = new Scanner(new File("myNumbers")); * while (sc.hasNextLong()) { * long aLong = sc.nextLong(); - * }The scanner can also use delimiters other than whitespace. This * example reads several items in from a string: - *
*+ *+ * 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();* prints the following output: - *
+ * blue + * }+ * {@code * 1 * 2 * red - * blue
The same output can be generated with this code, which uses a regular * expression to parse all four tokens at once: - *
* *+ *+ * 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();
The default whitespace delimiter used * by a scanner is as recognized by {@link java.lang.Character}.{@link @@ -2640,11 +2644,11 @@ * scanner.reset() behaves in exactly the same way as the * invocation * - *
* * @return this scanner * diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/TimerTask.java --- a/jdk/src/share/classes/java/util/TimerTask.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/TimerTask.java Mon Jun 10 12:58:32 2013 +0100 @@ -130,14 +130,14 @@ *+ *+ * }{@code * scanner.useDelimiter("\\p{javaWhitespace}+") * .useLocale(Locale.getDefault(Locale.Category.FORMAT)) * .useRadix(10); - *
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: - *
+ ** 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/jar/Pack200.java --- a/jdk/src/share/classes/java/util/jar/Pack200.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/jar/Pack200.java Mon Jun 10 12:58:32 2013 +0100 @@ -45,7 +45,7 @@ * 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 * } - *+ * }
* Here is an example using packer and unpacker:
- *
+ * } *+ *{@code * import java.util.jar.Pack200; * import java.util.jar.Pack200.*; * ... @@ -90,7 +90,7 @@ * } catch (IOException ioe) { * ioe.printStackTrace(); * } - *
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/logging/ConsoleHandler.java --- a/jdk/src/share/classes/java/util/logging/ConsoleHandler.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/logging/ConsoleHandler.java Mon Jun 10 12:58:32 2013 +0100 @@ -35,7 +35,7 @@ *
* Configuration:
* By default each ConsoleHandler is initialized using the following
- * LogManager configuration properties where
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 @@ * 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 @@ * 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 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/regex/MatchResult.java --- a/jdk/src/share/classes/java/util/regex/MatchResult.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/regex/MatchResult.java Mon Jun 10 12:58:32 2013 +0100 @@ -79,7 +79,7 @@ /** * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/regex/Pattern.java --- a/jdk/src/share/classes/java/util/regex/Pattern.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/regex/Pattern.java Mon Jun 10 12:58:32 2013 +0100 @@ -108,7 +108,7 @@ ** \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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/stream/package-info.java --- a/jdk/src/share/classes/java/util/stream/package-info.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/stream/package-info.java Mon Jun 10 12:58:32 2013 +0100 @@ -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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/zip/DeflaterInputStream.java --- a/jdk/src/share/classes/java/util/zip/DeflaterInputStream.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/zip/DeflaterInputStream.java Mon Jun 10 12:58:32 2013 +0100 @@ -97,7 +97,7 @@ * @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 @@ * @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/zip/DeflaterOutputStream.java --- a/jdk/src/share/classes/java/util/zip/DeflaterOutputStream.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/zip/DeflaterOutputStream.java Mon Jun 10 12:58:32 2013 +0100 @@ -71,7 +71,7 @@ * {@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 @@ * @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/zip/GZIPInputStream.java --- a/jdk/src/share/classes/java/util/zip/GZIPInputStream.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/zip/GZIPInputStream.java Mon Jun 10 12:58:32 2013 +0100 @@ -71,7 +71,7 @@ * @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/zip/GZIPOutputStream.java --- a/jdk/src/share/classes/java/util/zip/GZIPOutputStream.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/zip/GZIPOutputStream.java Mon Jun 10 12:58:32 2013 +0100 @@ -61,8 +61,7 @@ * @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 @@ * {@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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/zip/InflaterInputStream.java --- a/jdk/src/share/classes/java/util/zip/InflaterInputStream.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/zip/InflaterInputStream.java Mon Jun 10 12:58:32 2013 +0100 @@ -75,7 +75,7 @@ * @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 @@ * @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/zip/InflaterOutputStream.java --- a/jdk/src/share/classes/java/util/zip/InflaterOutputStream.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/zip/InflaterOutputStream.java Mon Jun 10 12:58:32 2013 +0100 @@ -97,7 +97,7 @@ * @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 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/java/util/zip/ZipInputStream.java --- a/jdk/src/share/classes/java/util/zip/ZipInputStream.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/java/util/zip/ZipInputStream.java Mon Jun 10 12:58:32 2013 +0100 @@ -232,7 +232,7 @@ * @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/crypto/spec/IvParameterSpec.java --- a/jdk/src/share/classes/javax/crypto/spec/IvParameterSpec.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/crypto/spec/IvParameterSpec.java Mon Jun 10 12:58:32 2013 +0100 @@ -68,7 +68,7 @@ * starts. * @param len the number of IV bytes. * @throws IllegalArgumentException if \t *The tab character ('\u0009') iv
isnull
- * or(iv.length - offset < len)
+ * or {@code (iv.length - offset < len)} * @throws ArrayIndexOutOfBoundsException is thrown ifoffset
* orlen
index bytes outside theiv
. */ diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/crypto/spec/RC5ParameterSpec.java --- a/jdk/src/share/classes/javax/crypto/spec/RC5ParameterSpec.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/crypto/spec/RC5ParameterSpec.java Mon Jun 10 12:58:32 2013 +0100 @@ -80,7 +80,7 @@ * bytes of the buffer are copied to protect against subsequent * modification. * @exception IllegalArgumentException ifiv
is - *null
or(iv.length < 2 * (wordSize / 8))
+ *null
or {@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 @@ * @param offset the offset iniv
where the IV starts. * @exception IllegalArgumentException ifiv
is *null
or - *(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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/crypto/spec/SecretKeySpec.java --- a/jdk/src/share/classes/javax/crypto/spec/SecretKeySpec.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/crypto/spec/SecretKeySpec.java Mon Jun 10 12:58:32 2013 +0100 @@ -130,7 +130,7 @@ * for information about standard algorithm names. * @exception IllegalArgumentException ifalgorithm
* is null orkey
is null, empty, or too short, - * i.e.key.length-offset
or. + * i.e. {@code key.length-offset offset len
index bytes outside the *key
. diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/naming/BinaryRefAddr.java --- a/jdk/src/share/classes/javax/naming/BinaryRefAddr.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/naming/BinaryRefAddr.java Mon Jun 10 12:58:32 2013 +0100 @@ -89,9 +89,9 @@ * @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/naming/directory/Attribute.java --- a/jdk/src/share/classes/javax/naming/directory/Attribute.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/naming/directory/Attribute.java Mon Jun 10 12:58:32 2013 +0100 @@ -265,7 +265,7 @@ * 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 @@ * 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 @@ * 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 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/naming/ldap/LdapName.java --- a/jdk/src/share/classes/javax/naming/ldap/LdapName.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/naming/ldap/LdapName.java Mon Jun 10 12:58:32 2013 +0100 @@ -443,7 +443,7 @@ * @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 @@ * 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 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/naming/ldap/PagedResultsControl.java --- a/jdk/src/share/classes/javax/naming/ldap/PagedResultsControl.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/naming/ldap/PagedResultsControl.java Mon Jun 10 12:58:32 2013 +0100 @@ -36,7 +36,7 @@ * 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 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/naming/ldap/SortControl.java --- a/jdk/src/share/classes/javax/naming/ldap/SortControl.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/naming/ldap/SortControl.java Mon Jun 10 12:58:32 2013 +0100 @@ -40,7 +40,7 @@ * then the search operation is not performed and an error is returned. *{@code * * realSearchControlValue ::= SEQUENCE { * size INTEGER (0..maxInt), @@ -104,7 +104,7 @@ * 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 @@ * ctx.close(); * ... * - *+ * }* This class implements the LDAPv3 Request Control for server-side sorting * as defined in diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/net/ssl/SNIHostName.java --- a/jdk/src/share/classes/javax/net/ssl/SNIHostName.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/net/ssl/SNIHostName.java Mon Jun 10 12:58:32 2013 +0100 @@ -295,8 +295,8 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/net/ssl/SSLEngine.java --- a/jdk/src/share/classes/javax/net/ssl/SSLEngine.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/net/ssl/SSLEngine.java Mon Jun 10 12:58:32 2013 +0100 @@ -211,7 +211,7 @@ * 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 @@ * break; * // other cases: CLOSED, OK. * } - *+ * }* Unlike
SSLSocket
, all methods of SSLEngine are @@ -442,7 +442,7 @@ ** {@link #wrap(ByteBuffer [], int, int, ByteBuffer) * engine.wrap(new ByteBuffer [] { src }, 0, 1, dst);} - *+ *
ByteBuffer
containing outbound application data
@@ -478,7 +478,7 @@
* * * @param srcs * an array of* {@link #wrap(ByteBuffer [], int, int, ByteBuffer) * engine.wrap(srcs, 0, srcs.length, dst);} - *+ *
ByteBuffers
containing the
@@ -597,7 +597,7 @@
* * * @param src * a* {@link #unwrap(ByteBuffer, ByteBuffer [], int, int) * engine.unwrap(src, new ByteBuffer [] { dst }, 0, 1);} - *+ *
ByteBuffer
containing inbound network data.
@@ -633,7 +633,7 @@
* * * @param src * a* {@link #unwrap(ByteBuffer, ByteBuffer [], int, int) * engine.unwrap(src, dsts, 0, dsts.length);} - *+ *
ByteBuffer
containing inbound network data.
diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/net/ssl/SSLEngineResult.java
--- a/jdk/src/share/classes/javax/net/ssl/SSLEngineResult.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/net/ssl/SSLEngineResult.java Mon Jun 10 12:58:32 2013 +0100
@@ -173,7 +173,7 @@
*
* @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/net/ssl/SSLSessionContext.java
--- a/jdk/src/share/classes/javax/net/ssl/SSLSessionContext.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/net/ssl/SSLSessionContext.java Mon Jun 10 12:58:32 2013 +0100
@@ -90,7 +90,7 @@
* @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 @@
*
* @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/script/ScriptEngineFactory.java
--- a/jdk/src/share/classes/javax/script/ScriptEngineFactory.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/script/ScriptEngineFactory.java Mon Jun 10 12:58:32 2013 +0100
@@ -144,8 +144,7 @@
* 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 @@
* ret += ")";
* return ret;
* }
- *
- *
+ * }
* * * @param obj The name representing the object whose method is to be invoked. The @@ -200,17 +198,17 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/security/auth/callback/CallbackHandler.java
--- a/jdk/src/share/classes/javax/security/auth/callback/CallbackHandler.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/security/auth/callback/CallbackHandler.java Mon Jun 10 12:58:32 2013 +0100
@@ -79,7 +79,7 @@
* This example code is for guidance only. Many details,
* including proper error handling, are left out for simplicity.
*
- * + ** * @param callbacks an array of{@code * public void handle(Callback[] callbacks) * throws IOException, UnsupportedCallbackException { * @@ -133,7 +133,7 @@ * private char[] readPassword(InputStream in) throws IOException { * // insert code to read a user password from the input stream * } - *+ * }
Callback
objects provided
* by an underlying security service which contains
diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/security/sasl/Sasl.java
--- a/jdk/src/share/classes/javax/security/sasl/Sasl.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/security/sasl/Sasl.java Mon Jun 10 12:58:32 2013 +0100
@@ -278,7 +278,7 @@
*
* 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 @@
* 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 @@ * 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 @@ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/security/sasl/SaslClient.java --- a/jdk/src/share/classes/javax/security/sasl/SaslClient.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/security/sasl/SaslClient.java Mon Jun 10 12:58:32 2013 +0100 @@ -38,13 +38,13 @@ *
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/security/sasl/SaslServer.java --- a/jdk/src/share/classes/javax/security/sasl/SaslServer.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/security/sasl/SaslServer.java Mon Jun 10 12:58:32 2013 +0100 @@ -47,7 +47,7 @@ * 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 @@ * ldap.out = new SecureOutputStream(sc, ldap.out); * } * } - *
* * @since 1.5 * diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/smartcardio/ResponseAPDU.java --- a/jdk/src/share/classes/javax/smartcardio/ResponseAPDU.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/smartcardio/ResponseAPDU.java Mon Jun 10 12:58:32 2013 +0100 @@ -121,7 +121,7 @@ * 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 @@ * ldap.out = new SecureOutputStream(ss, ldap.out); * } * } - *
(getSW1() << 8) | getSW2()
.
+ * {@code (getSW1() << 8) | getSW2()}
*
* @return the value of the status word SW.
*/
diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/sql/DataSource.java
--- a/jdk/src/share/classes/javax/sql/DataSource.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/sql/DataSource.java Mon Jun 10 12:58:32 2013 +0100
@@ -82,7 +82,7 @@
*
* @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 @@
* @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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/sql/rowset/BaseRowSet.java
--- a/jdk/src/share/classes/javax/sql/rowset/BaseRowSet.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/sql/rowset/BaseRowSet.java Mon Jun 10 12:58:32 2013 +0100
@@ -109,10 +109,10 @@
* CachedRowSet
TM
* 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 @@
*
* The following code fragment demonstrates * setting the two parameters in the query from the previous example. - *
+ ** If the{@code * crs.setInt(1, 5000); * crs.setString(2, "West"); - *+ * }
execute
method is called at this point, the query
* sent to the DBMS will be:
- * + ** NOTE: Setting{@code * "SELECT FIRST_NAME, LAST_NAME, ADDRESS FROM CUSTOMERS" + * "WHERE CREDIT_LIMIT > 5000 AND REGION = 'West'" - *+ * }
Array
, Clob
, Blob
and
* Ref
objects as a command parameter, stores these values as
* SerialArray
, SerialClob
, SerialBlob
@@ -158,7 +158,7 @@
* 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 @@
* specific abstract data types.
*
* The parameter value set by this method is stored internally and
- * will be supplied as the appropriate parameter in this RowSet
RowSet
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/sql/rowset/CachedRowSet.java
--- a/jdk/src/share/classes/javax/sql/rowset/CachedRowSet.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/sql/rowset/CachedRowSet.java Mon Jun 10 12:58:32 2013 +0100
@@ -118,7 +118,7 @@
*
* 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 @@
* * crs.setSyncProvider("com.fred.providers.HighAvailabilityProvider"); *- *
SyncFactory
and SyncProvider
for
* more details.
*
@@ -426,10 +426,10 @@
* 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 @@
* 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 @@ * // 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 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/sql/rowset/Predicate.java
--- a/jdk/src/share/classes/javax/sql/rowset/Predicate.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/sql/rowset/Predicate.java Mon Jun 10 12:58:32 2013 +0100
@@ -53,8 +53,7 @@
* 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 @@
* 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
+ * }
+ * }
+ *
+ * if (bool2) {
+ * return false;
* } else {
- * bool2 = true; // outside of filter constraints
+ * 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/sql/rowset/RowSetMetaDataImpl.java
--- a/jdk/src/share/classes/javax/sql/rowset/RowSetMetaDataImpl.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/sql/rowset/RowSetMetaDataImpl.java Mon Jun 10 12:58:32 2013 +0100
@@ -159,7 +159,7 @@
* @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 @@
* 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 @@
* 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 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/sql/rowset/spi/SyncFactory.java
--- a/jdk/src/share/classes/javax/sql/rowset/spi/SyncFactory.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/sql/rowset/spi/SyncFactory.java Mon Jun 10 12:58:32 2013 +0100
@@ -627,8 +627,6 @@
* 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 -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/sql/rowset/spi/SyncResolver.java
--- a/jdk/src/share/classes/javax/sql/rowset/spi/SyncResolver.java Mon Jun 10 12:26:20 2013 +0200
+++ b/jdk/src/share/classes/javax/sql/rowset/spi/SyncResolver.java Mon Jun 10 12:58:32 2013 +0100
@@ -193,7 +193,7 @@
* 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.
*
- *
+ ** @author Jonathan Bruce */ diff -r 889970e5b728 -r edb590d448c5 jdk/src/share/classes/javax/xml/crypto/dsig/Manifest.java --- a/jdk/src/share/classes/javax/xml/crypto/dsig/Manifest.java Mon Jun 10 12:26:20 2013 +0200 +++ b/jdk/src/share/classes/javax/xml/crypto/dsig/Manifest.java Mon Jun 10 12:58:32 2013 +0100 @@ -35,15 +35,15 @@ * the * W3C Recommendation for XML-Signature Syntax and Processing. * The XML Schema Definition is defined as: - *{@code * try { * * crs.acceptChanges(con); @@ -202,8 +202,8 @@ * * SyncResolver resolver = spe.getSyncResolver(); * - * Object crsValue; // value in the+ * }RowSet
object - * Object resolverValue: // value in theSyncResolver
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 @@ * } * } * } - *
- * <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}