# HG changeset patch # User jboes # Date 1569314623 -3600 # Node ID 48e480e56aadc368af91393aad5d89a1a91e529c # Parent a7f16447085eb1234f10c0ca6b3644e344713b3e 8231186: Replace html tag foo with javadoc tag {@code foo} in java.base Summary: Minor coding style update of javadoc tag in any file in java.base Reviewed-by: bchristi, lancea diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/io/BufferedInputStream.java --- a/src/java.base/share/classes/java/io/BufferedInputStream.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/io/BufferedInputStream.java Tue Sep 24 09:43:43 2019 +0100 @@ -29,20 +29,20 @@ import jdk.internal.util.ArraysSupport; /** - * A BufferedInputStream adds + * A {@code BufferedInputStream} adds * functionality to another input stream-namely, * the ability to buffer the input and to - * support the mark and reset - * methods. When the BufferedInputStream + * support the {@code mark} and {@code reset} + * methods. When the {@code BufferedInputStream} * is created, an internal buffer array is * created. As bytes from the stream are read * or skipped, the internal buffer is refilled * as necessary from the contained input stream, - * many bytes at a time. The mark + * many bytes at a time. The {@code mark} * operation remembers a point in the input - * stream and the reset operation + * stream and the {@code reset} operation * causes all the bytes read since the most - * recent mark operation to be + * recent {@code mark} operation to be * reread before new bytes are taken from * the contained input stream. * @@ -81,23 +81,23 @@ * The index one greater than the index of the last valid byte in * the buffer. * This value is always - * in the range 0 through buf.length; - * elements buf[0] through buf[count-1] - * contain buffered input data obtained + * in the range {@code 0} through {@code buf.length}; + * elements {@code buf[0]} through {@code buf[count-1]} + * contain buffered input data obtained * from the underlying input stream. */ protected int count; /** * The current position in the buffer. This is the index of the next - * character to be read from the buf array. + * character to be read from the {@code buf} array. *

- * This value is always in the range 0 - * through count. If it is less - * than count, then buf[pos] + * This value is always in the range {@code 0} + * through {@code count}. If it is less + * than {@code count}, then {@code buf[pos]} * is the next byte to be supplied as input; - * if it is equal to count, then - * the next read or skip + * if it is equal to {@code count}, then + * the next {@code read} or {@code skip} * operation will require more bytes to be * read from the contained input stream. * @@ -106,28 +106,28 @@ protected int pos; /** - * The value of the pos field at the time the last - * mark method was called. + * The value of the {@code pos} field at the time the last + * {@code mark} method was called. *

* This value is always - * in the range -1 through pos. + * in the range {@code -1} through {@code pos}. * If there is no marked position in the input - * stream, this field is -1. If + * stream, this field is {@code -1}. If * there is a marked position in the input - * stream, then buf[markpos] + * stream, then {@code buf[markpos]} * is the first byte to be supplied as input - * after a reset operation. If - * markpos is not -1, - * then all bytes from positions buf[markpos] - * through buf[pos-1] must remain + * after a {@code reset} operation. If + * {@code markpos} is not {@code -1}, + * then all bytes from positions {@code buf[markpos]} + * through {@code buf[pos-1]} must remain * in the buffer array (though they may be * moved to another place in the buffer array, * with suitable adjustments to the values - * of count, pos, - * and markpos); they may not + * of {@code count}, {@code pos}, + * and {@code markpos}); they may not * be discarded unless and until the difference - * between pos and markpos - * exceeds marklimit. + * between {@code pos} and {@code markpos} + * exceeds {@code marklimit}. * * @see java.io.BufferedInputStream#mark(int) * @see java.io.BufferedInputStream#pos @@ -136,12 +136,12 @@ /** * The maximum read ahead allowed after a call to the - * mark method before subsequent calls to the - * reset method fail. - * Whenever the difference between pos - * and markpos exceeds marklimit, + * {@code mark} method before subsequent calls to the + * {@code reset} method fail. + * Whenever the difference between {@code pos} + * and {@code markpos} exceeds {@code marklimit}, * then the mark may be dropped by setting - * markpos to -1. + * {@code markpos} to {@code -1}. * * @see java.io.BufferedInputStream#mark(int) * @see java.io.BufferedInputStream#reset() @@ -171,10 +171,10 @@ } /** - * Creates a BufferedInputStream + * Creates a {@code BufferedInputStream} * and saves its argument, the input stream - * in, for later use. An internal - * buffer array is created and stored in buf. + * {@code in}, for later use. An internal + * buffer array is created and stored in {@code buf}. * * @param in the underlying input stream. */ @@ -183,12 +183,12 @@ } /** - * Creates a BufferedInputStream + * Creates a {@code BufferedInputStream} * with the specified buffer size, * and saves its argument, the input stream - * in, for later use. An internal - * buffer array of length size - * is created and stored in buf. + * {@code in}, for later use. An internal + * buffer array of length {@code size} + * is created and stored in {@code buf}. * * @param in the underlying input stream. * @param size the buffer size. @@ -249,10 +249,10 @@ /** * See - * the general contract of the read - * method of InputStream. + * the general contract of the {@code read} + * method of {@code InputStream}. * - * @return the next byte of data, or -1 if the end of the + * @return the next byte of data, or {@code -1} if the end of the * stream is reached. * @throws IOException if this input stream has been closed by * invoking its {@link #close()} method, @@ -300,21 +300,21 @@ * {@link InputStream#read(byte[], int, int) read} method of * the {@link InputStream} class. As an additional * convenience, it attempts to read as many bytes as possible by repeatedly - * invoking the read method of the underlying stream. This - * iterated read continues until one of the following + * invoking the {@code read} method of the underlying stream. This + * iterated {@code read} continues until one of the following * conditions becomes true:

If the first read on the underlying stream returns - * -1 to indicate end-of-file then this method returns - * -1. Otherwise this method returns the number of bytes + * If the first {@code read} on the underlying stream returns + * {@code -1} to indicate end-of-file then this method returns + * {@code -1}. Otherwise this method returns the number of bytes * actually read. * *

Subclasses of this class are encouraged, but not required, to @@ -323,7 +323,7 @@ * @param b destination buffer. * @param off offset at which to start storing bytes. * @param len maximum number of bytes to read. - * @return the number of bytes read, or -1 if the end of + * @return the number of bytes read, or {@code -1} if the end of * the stream has been reached. * @throws IOException if this input stream has been closed by * invoking its {@link #close()} method, @@ -355,8 +355,8 @@ } /** - * See the general contract of the skip - * method of InputStream. + * See the general contract of the {@code skip} + * method of {@code InputStream}. * * @throws IOException if this input stream has been closed by * invoking its {@link #close()} method, @@ -413,8 +413,8 @@ } /** - * See the general contract of the mark - * method of InputStream. + * See the general contract of the {@code mark} + * method of {@code InputStream}. * * @param readlimit the maximum limit of bytes that can be read before * the mark position becomes invalid. @@ -426,14 +426,14 @@ } /** - * See the general contract of the reset - * method of InputStream. + * See the general contract of the {@code reset} + * method of {@code InputStream}. *

- * If markpos is -1 + * If {@code markpos} is {@code -1} * (no mark has been set or the mark has been - * invalidated), an IOException - * is thrown. Otherwise, pos is - * set equal to markpos. + * invalidated), an {@code IOException} + * is thrown. Otherwise, {@code pos} is + * set equal to {@code markpos}. * * @throws IOException if this stream has not been marked or, * if the mark has been invalidated, or the stream @@ -449,13 +449,13 @@ } /** - * Tests if this input stream supports the mark - * and reset methods. The markSupported - * method of BufferedInputStream returns - * true. + * Tests if this input stream supports the {@code mark} + * and {@code reset} methods. The {@code markSupported} + * method of {@code BufferedInputStream} returns + * {@code true}. * - * @return a boolean indicating if this stream type supports - * the mark and reset methods. + * @return a {@code boolean} indicating if this stream type supports + * the {@code mark} and {@code reset} methods. * @see java.io.InputStream#mark(int) * @see java.io.InputStream#reset() */ diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/io/BufferedOutputStream.java --- a/src/java.base/share/classes/java/io/BufferedOutputStream.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/io/BufferedOutputStream.java Tue Sep 24 09:43:43 2019 +0100 @@ -98,15 +98,15 @@ } /** - * Writes len bytes from the specified byte array - * starting at offset off to this buffered output stream. + * Writes {@code len} bytes from the specified byte array + * starting at offset {@code off} to this buffered output stream. * *

Ordinarily this method stores bytes from the given array into this * stream's buffer, flushing the buffer to the underlying output stream as * needed. If the requested length is at least as large as this stream's * buffer, however, then this method will flush the buffer and write the * bytes directly to the underlying output stream. Thus redundant - * BufferedOutputStreams will not copy data unnecessarily. + * {@code BufferedOutputStream}s will not copy data unnecessarily. * * @param b the data. * @param off the start offset in the data. diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/io/BufferedReader.java --- a/src/java.base/share/classes/java/io/BufferedReader.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/io/BufferedReader.java Tue Sep 24 09:43:43 2019 +0100 @@ -235,22 +235,22 @@ * {@link Reader#read(char[], int, int) read} method of the * {@link Reader} class. As an additional convenience, it * attempts to read as many characters as possible by repeatedly invoking - * the read method of the underlying stream. This iterated - * read continues until one of the following conditions becomes + * the {@code read} method of the underlying stream. This iterated + * {@code read} continues until one of the following conditions becomes * true:

If the first read on the underlying stream returns - * -1 to indicate end-of-file then this method returns - * -1. Otherwise this method returns the number of characters + * If the first {@code read} on the underlying stream returns + * {@code -1} to indicate end-of-file then this method returns + * {@code -1}. Otherwise this method returns the number of characters * actually read. * *

Subclasses of this class are encouraged, but not required, to @@ -261,7 +261,7 @@ * however, the buffer is empty, the mark is not valid, and the requested * length is at least as large as the buffer, then this method will read * characters directly from the underlying stream into the given array. - * Thus redundant BufferedReaders will not copy data + * Thus redundant {@code BufferedReader}s will not copy data * unnecessarily. * * @param cbuf Destination buffer @@ -403,7 +403,7 @@ * * @return The number of characters actually skipped * - * @throws IllegalArgumentException If n is negative. + * @throws IllegalArgumentException If {@code n} is negative. * @throws IOException If an I/O error occurs */ public long skip(long n) throws IOException { diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/io/CharArrayReader.java --- a/src/java.base/share/classes/java/io/CharArrayReader.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/io/CharArrayReader.java Tue Sep 24 09:43:43 2019 +0100 @@ -148,10 +148,10 @@ /** * Skips characters. Returns the number of characters that were skipped. * - *

The n parameter may be negative, even though the - * skip method of the {@link Reader} superclass throws - * an exception in this case. If n is negative, then - * this method does nothing and returns 0. + *

The {@code n} parameter may be negative, even though the + * {@code skip} method of the {@link Reader} superclass throws + * an exception in this case. If {@code n} is negative, then + * this method does nothing and returns {@code 0}. * * @param n The number of characters to skip * @return The number of characters actually skipped diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/io/DataInputStream.java --- a/src/java.base/share/classes/java/io/DataInputStream.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/io/DataInputStream.java Tue Sep 24 09:43:43 2019 +0100 @@ -60,34 +60,34 @@ /** * Reads some number of bytes from the contained input stream and - * stores them into the buffer array b. The number of + * stores them into the buffer array {@code b}. The number of * bytes actually read is returned as an integer. This method blocks * until input data is available, end of file is detected, or an * exception is thrown. * - *

If b is null, a NullPointerException is - * thrown. If the length of b is zero, then no bytes are - * read and 0 is returned; otherwise, there is an attempt + *

If {@code b} is null, a {@code NullPointerException} is + * thrown. If the length of {@code b} is zero, then no bytes are + * read and {@code 0} is returned; otherwise, there is an attempt * to read at least one byte. If no byte is available because the - * stream is at end of file, the value -1 is returned; - * otherwise, at least one byte is read and stored into b. + * stream is at end of file, the value {@code -1} is returned; + * otherwise, at least one byte is read and stored into {@code b}. * - *

The first byte read is stored into element b[0], the - * next one into b[1], and so on. The number of bytes read - * is, at most, equal to the length of b. Let k + *

The first byte read is stored into element {@code b[0]}, the + * next one into {@code b[1]}, and so on. The number of bytes read + * is, at most, equal to the length of {@code b}. Let {@code k} * be the number of bytes actually read; these bytes will be stored in - * elements b[0] through b[k-1], leaving - * elements b[k] through b[b.length-1] + * elements {@code b[0]} through {@code b[k-1]}, leaving + * elements {@code b[k]} through {@code b[b.length-1]} * unaffected. * - *

The read(b) method has the same effect as: + *

The {@code read(b)} method has the same effect as: *

      * read(b, 0, b.length)
      * 
* * @param b the buffer into which the data is read. * @return the total number of bytes read into the buffer, or - * -1 if there is no more data because the end + * {@code -1} if there is no more data because the end * of the stream has been reached. * @throws IOException if the first byte cannot be read for any reason * other than end of file, the stream has been closed and the underlying @@ -101,43 +101,43 @@ } /** - * Reads up to len bytes of data from the contained + * Reads up to {@code len} bytes of data from the contained * input stream into an array of bytes. An attempt is made to read - * as many as len bytes, but a smaller number may be read, + * as many as {@code len} bytes, but a smaller number may be read, * possibly zero. The number of bytes actually read is returned as an * integer. * *

This method blocks until input data is available, end of file is * detected, or an exception is thrown. * - *

If len is zero, then no bytes are read and - * 0 is returned; otherwise, there is an attempt to read at + *

If {@code len} is zero, then no bytes are read and + * {@code 0} is returned; otherwise, there is an attempt to read at * least one byte. If no byte is available because the stream is at end of - * file, the value -1 is returned; otherwise, at least one - * byte is read and stored into b. + * file, the value {@code -1} is returned; otherwise, at least one + * byte is read and stored into {@code b}. * - *

The first byte read is stored into element b[off], the - * next one into b[off+1], and so on. The number of bytes read - * is, at most, equal to len. Let k be the number of + *

The first byte read is stored into element {@code b[off]}, the + * next one into {@code b[off+1]}, and so on. The number of bytes read + * is, at most, equal to {@code len}. Let k be the number of * bytes actually read; these bytes will be stored in elements - * b[off] through b[off+k-1], - * leaving elements b[off+k] through - * b[off+len-1] unaffected. + * {@code b[off]} through {@code b[off+}k{@code -1]}, + * leaving elements {@code b[off+}k{@code ]} through + * {@code b[off+len-1]} unaffected. * - *

In every case, elements b[0] through - * b[off] and elements b[off+len] through - * b[b.length-1] are unaffected. + *

In every case, elements {@code b[0]} through + * {@code b[off]} and elements {@code b[off+len]} through + * {@code b[b.length-1]} are unaffected. * * @param b the buffer into which the data is read. - * @param off the start offset in the destination array b + * @param off the start offset in the destination array {@code b} * @param len the maximum number of bytes read. * @return the total number of bytes read into the buffer, or - * -1 if there is no more data because the end + * {@code -1} if there is no more data because the end * of the stream has been reached. - * @throws NullPointerException If b is null. - * @throws IndexOutOfBoundsException If off is negative, - * len is negative, or len is greater than - * b.length - off + * @throws NullPointerException If {@code b} is {@code null}. + * @throws IndexOutOfBoundsException If {@code off} is negative, + * {@code len} is negative, or {@code len} is greater than + * {@code b.length - off} * @throws IOException if the first byte cannot be read for any reason * other than end of file, the stream has been closed and the underlying * input stream does not support reading after close, or another I/O @@ -205,8 +205,8 @@ } /** - * See the general contract of the skipBytes - * method of DataInput. + * See the general contract of the {@code skipBytes} + * method of {@code DataInput}. *

* Bytes for this operation are read from the contained * input stream. @@ -230,13 +230,13 @@ } /** - * See the general contract of the readBoolean - * method of DataInput. + * See the general contract of the {@code readBoolean} + * method of {@code DataInput}. *

* Bytes for this operation are read from the contained * input stream. * - * @return the boolean value read. + * @return the {@code boolean} value read. * @throws EOFException if this input stream has reached the end. * @throws IOException the stream has been closed and the contained * input stream does not support reading after close, or @@ -251,15 +251,15 @@ } /** - * See the general contract of the readByte - * method of DataInput. + * See the general contract of the {@code readByte} + * method of {@code DataInput}. *

* Bytes * for this operation are read from the contained * input stream. * * @return the next byte of this input stream as a signed 8-bit - * byte. + * {@code byte}. * @throws EOFException if this input stream has reached the end. * @throws IOException the stream has been closed and the contained * input stream does not support reading after close, or @@ -274,8 +274,8 @@ } /** - * See the general contract of the readUnsignedByte - * method of DataInput. + * See the general contract of the {@code readUnsignedByte} + * method of {@code DataInput}. *

* Bytes * for this operation are read from the contained @@ -297,8 +297,8 @@ } /** - * See the general contract of the readShort - * method of DataInput. + * See the general contract of the {@code readShort} + * method of {@code DataInput}. *

* Bytes * for this operation are read from the contained @@ -322,8 +322,8 @@ } /** - * See the general contract of the readUnsignedShort - * method of DataInput. + * See the general contract of the {@code readUnsignedShort} + * method of {@code DataInput}. *

* Bytes * for this operation are read from the contained @@ -347,15 +347,15 @@ } /** - * See the general contract of the readChar - * method of DataInput. + * See the general contract of the {@code readChar} + * method of {@code DataInput}. *

* Bytes * for this operation are read from the contained * input stream. * * @return the next two bytes of this input stream, interpreted as a - * char. + * {@code char}. * @throws EOFException if this input stream reaches the end before * reading two bytes. * @throws IOException the stream has been closed and the contained @@ -372,15 +372,15 @@ } /** - * See the general contract of the readInt - * method of DataInput. + * See the general contract of the {@code readInt} + * method of {@code DataInput}. *

* Bytes * for this operation are read from the contained * input stream. * * @return the next four bytes of this input stream, interpreted as an - * int. + * {@code int}. * @throws EOFException if this input stream reaches the end before * reading four bytes. * @throws IOException the stream has been closed and the contained @@ -401,15 +401,15 @@ private byte readBuffer[] = new byte[8]; /** - * See the general contract of the readLong - * method of DataInput. + * See the general contract of the {@code readLong} + * method of {@code DataInput}. *

* Bytes * for this operation are read from the contained * input stream. * * @return the next eight bytes of this input stream, interpreted as a - * long. + * {@code long}. * @throws EOFException if this input stream reaches the end before * reading eight bytes. * @throws IOException the stream has been closed and the contained @@ -430,15 +430,15 @@ } /** - * See the general contract of the readFloat - * method of DataInput. + * See the general contract of the {@code readFloat} + * method of {@code DataInput}. *

* Bytes * for this operation are read from the contained * input stream. * * @return the next four bytes of this input stream, interpreted as a - * float. + * {@code float}. * @throws EOFException if this input stream reaches the end before * reading four bytes. * @throws IOException the stream has been closed and the contained @@ -452,15 +452,15 @@ } /** - * See the general contract of the readDouble - * method of DataInput. + * See the general contract of the {@code readDouble} + * method of {@code DataInput}. *

* Bytes * for this operation are read from the contained * input stream. * * @return the next eight bytes of this input stream, interpreted as a - * double. + * {@code double}. * @throws EOFException if this input stream reaches the end before * reading eight bytes. * @throws IOException the stream has been closed and the contained @@ -476,8 +476,8 @@ private char lineBuffer[]; /** - * See the general contract of the readLine - * method of DataInput. + * See the general contract of the {@code readLine} + * method of {@code DataInput}. *

* Bytes * for this operation are read from the contained @@ -485,9 +485,9 @@ * * @deprecated This method does not properly convert bytes to characters. * As of JDK 1.1, the preferred way to read lines of text is via the - * BufferedReader.readLine() method. Programs that use the - * DataInputStream class to read lines can be converted to use - * the BufferedReader class by replacing code of the form: + * {@code BufferedReader.readLine()} method. Programs that use the + * {@code DataInputStream} class to read lines can be converted to use + * the {@code BufferedReader} class by replacing code of the form: *

      *     DataInputStream d = new DataInputStream(in);
      * 
@@ -548,8 +548,8 @@ } /** - * See the general contract of the readUTF - * method of DataInput. + * See the general contract of the {@code readUTF} + * method of {@code DataInput}. *

* Bytes * for this operation are read from the contained @@ -571,13 +571,13 @@ /** * Reads from the - * stream in a representation + * stream {@code in} a representation * of a Unicode character string encoded in * modified UTF-8 format; - * this string of characters is then returned as a String. + * this string of characters is then returned as a {@code String}. * The details of the modified UTF-8 representation - * are exactly the same as for the readUTF - * method of DataInput. + * are exactly the same as for the {@code readUTF} + * method of {@code DataInput}. * * @param in a data input stream. * @return a Unicode string. diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/io/DataOutput.java --- a/src/java.base/share/classes/java/io/DataOutput.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/io/DataOutput.java Tue Sep 24 09:43:43 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -26,12 +26,12 @@ package java.io; /** - * The DataOutput interface provides + * The {@code DataOutput} interface provides * for converting data from any of the Java * primitive types to a series of bytes and * writing these bytes to a binary stream. * There is also a facility for converting - * a String into + * a {@code String} into * modified UTF-8 * format and writing the resulting series * of bytes. @@ -39,7 +39,7 @@ * For all the methods in this interface that * write bytes, it is generally true that if * a byte cannot be written for any reason, - * an IOException is thrown. + * an {@code IOException} is thrown. * * @author Frank Yellin * @see java.io.DataInput @@ -50,8 +50,8 @@ interface DataOutput { /** * Writes to the output stream the eight - * low-order bits of the argument b. - * The 24 high-order bits of b + * low-order bits of the argument {@code b}. + * The 24 high-order bits of {@code b} * are ignored. * * @param b the byte to be written. @@ -60,14 +60,14 @@ void write(int b) throws IOException; /** - * Writes to the output stream all the bytes in array b. - * If b is null, - * a NullPointerException is thrown. - * If b.length is zero, then + * Writes to the output stream all the bytes in array {@code b}. + * If {@code b} is {@code null}, + * a {@code NullPointerException} is thrown. + * If {@code b.length} is zero, then * no bytes are written. Otherwise, the byte - * b[0] is written first, then - * b[1], and so on; the last byte - * written is b[b.length-1]. + * {@code b[0]} is written first, then + * {@code b[1]}, and so on; the last byte + * written is {@code b[b.length-1]}. * * @param b the data. * @throws IOException if an I/O error occurs. @@ -75,19 +75,19 @@ void write(byte b[]) throws IOException; /** - * Writes len bytes from array - * b, in order, to - * the output stream. If b - * is null, a NullPointerException - * is thrown. If off is negative, - * or len is negative, or off+len + * Writes {@code len} bytes from array + * {@code b}, in order, to + * the output stream. If {@code b} + * is {@code null}, a {@code NullPointerException} + * is thrown. If {@code off} is negative, + * or {@code len} is negative, or {@code off+len} * is greater than the length of the array - * b, then an IndexOutOfBoundsException - * is thrown. If len is zero, + * {@code b}, then an {@code IndexOutOfBoundsException} + * is thrown. If {@code len} is zero, * then no bytes are written. Otherwise, the - * byte b[off] is written first, - * then b[off+1], and so on; the - * last byte written is b[off+len-1]. + * byte {@code b[off]} is written first, + * then {@code b[off+1]}, and so on; the + * last byte written is {@code b[off+len-1]}. * * @param b the data. * @param off the start offset in the data. @@ -97,16 +97,16 @@ void write(byte b[], int off, int len) throws IOException; /** - * Writes a boolean value to this output stream. - * If the argument v - * is true, the value (byte)1 - * is written; if v is false, - * the value (byte)0 is written. + * Writes a {@code boolean} value to this output stream. + * If the argument {@code v} + * is {@code true}, the value {@code (byte)1} + * is written; if {@code v} is {@code false}, + * the value {@code (byte)0} is written. * The byte written by this method may - * be read by the readBoolean - * method of interface DataInput, - * which will then return a boolean - * equal to v. + * be read by the {@code readBoolean} + * method of interface {@code DataInput}, + * which will then return a {@code boolean} + * equal to {@code v}. * * @param v the boolean to be written. * @throws IOException if an I/O error occurs. @@ -115,15 +115,15 @@ /** * Writes to the output stream the eight low- - * order bits of the argument v. - * The 24 high-order bits of v - * are ignored. (This means that writeByte - * does exactly the same thing as write + * order bits of the argument {@code v}. + * The 24 high-order bits of {@code v} + * are ignored. (This means that {@code writeByte} + * does exactly the same thing as {@code write} * for an integer argument.) The byte written - * by this method may be read by the readByte - * method of interface DataInput, - * which will then return a byte - * equal to (byte)v. + * by this method may be read by the {@code readByte} + * method of interface {@code DataInput}, + * which will then return a {@code byte} + * equal to {@code (byte)v}. * * @param v the byte value to be written. * @throws IOException if an I/O error occurs. @@ -140,18 +140,18 @@ * (byte)(0xff & v) * }

* The bytes written by this method may be - * read by the readShort method - * of interface DataInput , which - * will then return a short equal - * to (short)v. + * read by the {@code readShort} method + * of interface {@code DataInput} , which + * will then return a {@code short} equal + * to {@code (short)v}. * - * @param v the short value to be written. + * @param v the {@code short} value to be written. * @throws IOException if an I/O error occurs. */ void writeShort(int v) throws IOException; /** - * Writes a char value, which + * Writes a {@code char} value, which * is comprised of two bytes, to the * output stream. * The byte values to be written, in the order @@ -161,18 +161,18 @@ * (byte)(0xff & v) * }

* The bytes written by this method may be - * read by the readChar method - * of interface DataInput , which - * will then return a char equal - * to (char)v. + * read by the {@code readChar} method + * of interface {@code DataInput} , which + * will then return a {@code char} equal + * to {@code (char)v}. * - * @param v the char value to be written. + * @param v the {@code char} value to be written. * @throws IOException if an I/O error occurs. */ void writeChar(int v) throws IOException; /** - * Writes an int value, which is + * Writes an {@code int} value, which is * comprised of four bytes, to the output stream. * The byte values to be written, in the order * shown, are: @@ -183,17 +183,17 @@ * (byte)(0xff & v) * }

* The bytes written by this method may be read - * by the readInt method of interface - * DataInput , which will then - * return an int equal to v. + * by the {@code readInt} method of interface + * {@code DataInput} , which will then + * return an {@code int} equal to {@code v}. * - * @param v the int value to be written. + * @param v the {@code int} value to be written. * @throws IOException if an I/O error occurs. */ void writeInt(int v) throws IOException; /** - * Writes a long value, which is + * Writes a {@code long} value, which is * comprised of eight bytes, to the output stream. * The byte values to be written, in the order * shown, are: @@ -208,50 +208,50 @@ * (byte)(0xff & v) * }

* The bytes written by this method may be - * read by the readLong method - * of interface DataInput , which - * will then return a long equal - * to v. + * read by the {@code readLong} method + * of interface {@code DataInput} , which + * will then return a {@code long} equal + * to {@code v}. * - * @param v the long value to be written. + * @param v the {@code long} value to be written. * @throws IOException if an I/O error occurs. */ void writeLong(long v) throws IOException; /** - * Writes a float value, + * Writes a {@code float} value, * which is comprised of four bytes, to the output stream. * It does this as if it first converts this - * float value to an int - * in exactly the manner of the Float.floatToIntBits - * method and then writes the int - * value in exactly the manner of the writeInt + * {@code float} value to an {@code int} + * in exactly the manner of the {@code Float.floatToIntBits} + * method and then writes the {@code int} + * value in exactly the manner of the {@code writeInt} * method. The bytes written by this method - * may be read by the readFloat - * method of interface DataInput, - * which will then return a float - * equal to v. + * may be read by the {@code readFloat} + * method of interface {@code DataInput}, + * which will then return a {@code float} + * equal to {@code v}. * - * @param v the float value to be written. + * @param v the {@code float} value to be written. * @throws IOException if an I/O error occurs. */ void writeFloat(float v) throws IOException; /** - * Writes a double value, + * Writes a {@code double} value, * which is comprised of eight bytes, to the output stream. * It does this as if it first converts this - * double value to a long - * in exactly the manner of the Double.doubleToLongBits - * method and then writes the long - * value in exactly the manner of the writeLong + * {@code double} value to a {@code long} + * in exactly the manner of the {@code Double.doubleToLongBits} + * method and then writes the {@code long} + * value in exactly the manner of the {@code writeLong} * method. The bytes written by this method - * may be read by the readDouble - * method of interface DataInput, - * which will then return a double - * equal to v. + * may be read by the {@code readDouble} + * method of interface {@code DataInput}, + * which will then return a {@code double} + * equal to {@code v}. * - * @param v the double value to be written. + * @param v the {@code double} value to be written. * @throws IOException if an I/O error occurs. */ void writeDouble(double v) throws IOException; @@ -259,17 +259,17 @@ /** * Writes a string to the output stream. * For every character in the string - * s, taken in order, one byte + * {@code s}, taken in order, one byte * is written to the output stream. If - * s is null, a NullPointerException - * is thrown.

If s.length + * {@code s} is {@code null}, a {@code NullPointerException} + * is thrown.

If {@code s.length} * is zero, then no bytes are written. Otherwise, - * the character s[0] is written - * first, then s[1], and so on; - * the last character written is s[s.length-1]. + * the character {@code s[0]} is written + * first, then {@code s[1]}, and so on; + * the last character written is {@code s[s.length-1]}. * For each character, one byte is written, * the low-order byte, in exactly the manner - * of the writeByte method . The + * of the {@code writeByte} method . The * high-order eight bits of each character * in the string are ignored. * @@ -279,19 +279,19 @@ void writeBytes(String s) throws IOException; /** - * Writes every character in the string s, + * Writes every character in the string {@code s}, * to the output stream, in order, - * two bytes per character. If s - * is null, a NullPointerException - * is thrown. If s.length + * two bytes per character. If {@code s} + * is {@code null}, a {@code NullPointerException} + * is thrown. If {@code s.length} * is zero, then no characters are written. - * Otherwise, the character s[0] - * is written first, then s[1], + * Otherwise, the character {@code s[0]} + * is written first, then {@code s[1]}, * and so on; the last character written is - * s[s.length-1]. For each character, + * {@code s[s.length-1]}. For each character, * two bytes are actually written, high-order * byte first, in exactly the manner of the - * writeChar method. + * {@code writeChar} method. * * @param s the string value to be written. * @throws IOException if an I/O error occurs. @@ -304,19 +304,19 @@ * by the * modified UTF-8 * representation - * of every character in the string s. - * If s is null, - * a NullPointerException is thrown. - * Each character in the string s + * of every character in the string {@code s}. + * If {@code s} is {@code null}, + * a {@code NullPointerException} is thrown. + * Each character in the string {@code s} * is converted to a group of one, two, or * three bytes, depending on the value of the * character.

- * If a character c + * If a character {@code c} * is in the range \u0001 through * \u007f, it is represented * by one byte: *

(byte)c 

- * If a character c is \u0000 + * If a character {@code c} is \u0000 * or is in the range \u0080 * through \u07ff, then it is * represented by two bytes, to be written @@ -324,8 +324,8 @@ * (byte)(0xc0 | (0x1f & (c >> 6))) * (byte)(0x80 | (0x3f & c)) * }

If a character - * c is in the range \u0800 - * through uffff, then it is + * {@code c} is in the range \u0800 + * through {@code uffff}, then it is * represented by three bytes, to be written * in the order shown:

{@code
      * (byte)(0xe0 | (0x0f & (c >> 12)))
@@ -333,19 +333,19 @@
      * (byte)(0x80 | (0x3f & c))
      * }

First, * the total number of bytes needed to represent - * all the characters of s is + * all the characters of {@code s} is * calculated. If this number is larger than - * 65535, then a UTFDataFormatException + * {@code 65535}, then a {@code UTFDataFormatException} * is thrown. Otherwise, this length is written * to the output stream in exactly the manner - * of the writeShort method; + * of the {@code writeShort} method; * after this, the one-, two-, or three-byte * representation of each character in the - * string s is written.

The + * string {@code s} is written.

The * bytes written by this method may be read - * by the readUTF method of interface - * DataInput , which will then - * return a String equal to s. + * by the {@code readUTF} method of interface + * {@code DataInput} , which will then + * return a {@code String} equal to {@code s}. * * @param s the string value to be written. * @throws IOException if an I/O error occurs. diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/io/DataOutputStream.java --- a/src/java.base/share/classes/java/io/DataOutputStream.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/io/DataOutputStream.java Tue Sep 24 09:43:43 2019 +0100 @@ -49,7 +49,7 @@ /** * Creates a new data output stream to write data to the specified - * underlying output stream. The counter written is + * underlying output stream. The counter {@code written} is * set to zero. * * @param out the underlying output stream, to be saved for later @@ -74,13 +74,13 @@ /** * Writes the specified byte (the low eight bits of the argument - * b) to the underlying output stream. If no exception - * is thrown, the counter written is incremented by - * 1. + * {@code b}) to the underlying output stream. If no exception + * is thrown, the counter {@code written} is incremented by + * {@code 1}. *

- * Implements the write method of OutputStream. + * Implements the {@code write} method of {@code OutputStream}. * - * @param b the byte to be written. + * @param b the {@code byte} to be written. * @throws IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out */ @@ -90,10 +90,10 @@ } /** - * Writes len bytes from the specified byte array - * starting at offset off to the underlying output stream. - * If no exception is thrown, the counter written is - * incremented by len. + * Writes {@code len} bytes from the specified byte array + * starting at offset {@code off} to the underlying output stream. + * If no exception is thrown, the counter {@code written} is + * incremented by {@code len}. * * @param b the data. * @param off the start offset in the data. @@ -112,8 +112,8 @@ * Flushes this data output stream. This forces any buffered output * bytes to be written out to the stream. *

- * The flush method of DataOutputStream - * calls the flush method of its underlying output stream. + * The {@code flush} method of {@code DataOutputStream} + * calls the {@code flush} method of its underlying output stream. * * @throws IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out @@ -124,14 +124,14 @@ } /** - * Writes a boolean to the underlying output stream as - * a 1-byte value. The value true is written out as the - * value (byte)1; the value false is - * written out as the value (byte)0. If no exception is - * thrown, the counter written is incremented by - * 1. + * Writes a {@code boolean} to the underlying output stream as + * a 1-byte value. The value {@code true} is written out as the + * value {@code (byte)1}; the value {@code false} is + * written out as the value {@code (byte)0}. If no exception is + * thrown, the counter {@code written} is incremented by + * {@code 1}. * - * @param v a boolean value to be written. + * @param v a {@code boolean} value to be written. * @throws IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out */ @@ -141,11 +141,11 @@ } /** - * Writes out a byte to the underlying output stream as + * Writes out a {@code byte} to the underlying output stream as * a 1-byte value. If no exception is thrown, the counter - * written is incremented by 1. + * {@code written} is incremented by {@code 1}. * - * @param v a byte value to be written. + * @param v a {@code byte} value to be written. * @throws IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out */ @@ -155,11 +155,11 @@ } /** - * Writes a short to the underlying output stream as two + * Writes a {@code short} to the underlying output stream as two * bytes, high byte first. If no exception is thrown, the counter - * written is incremented by 2. + * {@code written} is incremented by {@code 2}. * - * @param v a short to be written. + * @param v a {@code short} to be written. * @throws IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out */ @@ -170,11 +170,11 @@ } /** - * Writes a char to the underlying output stream as a + * Writes a {@code char} to the underlying output stream as a * 2-byte value, high byte first. If no exception is thrown, the - * counter written is incremented by 2. + * counter {@code written} is incremented by {@code 2}. * - * @param v a char value to be written. + * @param v a {@code char} value to be written. * @throws IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out */ @@ -185,11 +185,11 @@ } /** - * Writes an int to the underlying output stream as four + * Writes an {@code int} to the underlying output stream as four * bytes, high byte first. If no exception is thrown, the counter - * written is incremented by 4. + * {@code written} is incremented by {@code 4}. * - * @param v an int to be written. + * @param v an {@code int} to be written. * @throws IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out */ @@ -204,11 +204,11 @@ private byte writeBuffer[] = new byte[8]; /** - * Writes a long to the underlying output stream as eight + * Writes a {@code long} to the underlying output stream as eight * bytes, high byte first. In no exception is thrown, the counter - * written is incremented by 8. + * {@code written} is incremented by {@code 8}. * - * @param v a long to be written. + * @param v a {@code long} to be written. * @throws IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out */ @@ -226,14 +226,14 @@ } /** - * Converts the float argument to an int using the - * floatToIntBits method in class Float, - * and then writes that int value to the underlying + * Converts the float argument to an {@code int} using the + * {@code floatToIntBits} method in class {@code Float}, + * and then writes that {@code int} value to the underlying * output stream as a 4-byte quantity, high byte first. If no - * exception is thrown, the counter written is - * incremented by 4. + * exception is thrown, the counter {@code written} is + * incremented by {@code 4}. * - * @param v a float value to be written. + * @param v a {@code float} value to be written. * @throws IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out * @see java.lang.Float#floatToIntBits(float) @@ -243,14 +243,14 @@ } /** - * Converts the double argument to a long using the - * doubleToLongBits method in class Double, - * and then writes that long value to the underlying + * Converts the double argument to a {@code long} using the + * {@code doubleToLongBits} method in class {@code Double}, + * and then writes that {@code long} value to the underlying * output stream as an 8-byte quantity, high byte first. If no - * exception is thrown, the counter written is - * incremented by 8. + * exception is thrown, the counter {@code written} is + * incremented by {@code 8}. * - * @param v a double value to be written. + * @param v a {@code double} value to be written. * @throws IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out * @see java.lang.Double#doubleToLongBits(double) @@ -263,8 +263,8 @@ * Writes out the string to the underlying output stream as a * sequence of bytes. Each character in the string is written out, in * sequence, by discarding its high eight bits. If no exception is - * thrown, the counter written is incremented by the - * length of s. + * thrown, the counter {@code written} is incremented by the + * length of {@code s}. * * @param s a string of bytes to be written. * @throws IOException if an I/O error occurs. @@ -281,11 +281,11 @@ /** * Writes a string to the underlying output stream as a sequence of * characters. Each character is written to the data output stream as - * if by the writeChar method. If no exception is - * thrown, the counter written is incremented by twice - * the length of s. + * if by the {@code writeChar} method. If no exception is + * thrown, the counter {@code written} is incremented by twice + * the length of {@code s}. * - * @param s a String value to be written. + * @param s a {@code String} value to be written. * @throws IOException if an I/O error occurs. * @see java.io.DataOutputStream#writeChar(int) * @see java.io.FilterOutputStream#out @@ -306,15 +306,15 @@ * encoding in a machine-independent manner. *

* First, two bytes are written to the output stream as if by the - * writeShort method giving the number of bytes to + * {@code writeShort} method giving the number of bytes to * follow. This value is the number of bytes actually written out, * not the length of the string. Following the length, each character * of the string is output, in sequence, using the modified UTF-8 encoding * for the character. If no exception is thrown, the counter - * written is incremented by the total number of + * {@code written} is incremented by the total number of * bytes written to the output stream. This will be at least two - * plus the length of str, and at most two plus - * thrice the length of str. + * plus the length of {@code str}, and at most two plus + * thrice the length of {@code str}. * * @param str a string to be written. * @throws UTFDataFormatException if the modified UTF-8 encoding of @@ -331,15 +331,15 @@ * modified UTF-8 * encoding in a machine-independent manner. *

- * First, two bytes are written to out as if by the writeShort + * First, two bytes are written to out as if by the {@code writeShort} * method giving the number of bytes to follow. This value is the number of * bytes actually written out, not the length of the string. Following the * length, each character of the string is output, in sequence, using the * modified UTF-8 encoding for the character. If no exception is thrown, the - * counter written is incremented by the total number of + * counter {@code written} is incremented by the total number of * bytes written to the output stream. This will be at least two - * plus the length of str, and at most two plus - * thrice the length of str. + * plus the length of {@code str}, and at most two plus + * thrice the length of {@code str}. * * @param str a string to be written. * @param out destination to write to @@ -410,11 +410,11 @@ } /** - * Returns the current value of the counter written, + * Returns the current value of the counter {@code written}, * the number of bytes written to this data output stream so far. * If the counter overflows, it will be wrapped to Integer.MAX_VALUE. * - * @return the value of the written field. + * @return the value of the {@code written} field. * @see java.io.DataOutputStream#written */ public final int size() { diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/io/EOFException.java --- a/src/java.base/share/classes/java/io/EOFException.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/io/EOFException.java Tue Sep 24 09:43:43 2019 +0100 @@ -44,7 +44,7 @@ private static final long serialVersionUID = 6433858223774886977L; /** - * Constructs an EOFException with null + * Constructs an {@code EOFException} with {@code null} * as its error detail message. */ public EOFException() { @@ -52,10 +52,10 @@ } /** - * Constructs an EOFException with the specified detail - * message. The string s may later be retrieved by the + * Constructs an {@code EOFException} with the specified detail + * message. The string {@code s} may later be retrieved by the * {@link java.lang.Throwable#getMessage} method of class - * java.lang.Throwable. + * {@code java.lang.Throwable}. * * @param s the detail message. */ diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/io/File.java --- a/src/java.base/share/classes/java/io/File.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/io/File.java Tue Sep 24 09:43:43 2019 +0100 @@ -46,8 +46,8 @@ * *

    *
  1. An optional system-dependent prefix string, - * such as a disk-drive specifier, "/" for the UNIX root - * directory, or "\\\\" for a Microsoft Windows UNC pathname, and + * such as a disk-drive specifier, {@code "/"} for the UNIX root + * directory, or {@code "\\\\"} for a Microsoft Windows UNC pathname, and *
  2. A sequence of zero or more string names. *
* @@ -61,7 +61,7 @@ * inherently system-dependent. When an abstract pathname is converted into a * pathname string, each name is separated from the next by a single copy of * the default separator character. The default name-separator - * character is defined by the system property file.separator, and + * character is defined by the system property {@code file.separator}, and * is made available in the public static fields {@link * #separator} and {@link #separatorChar} of this class. * When a pathname string is converted into an abstract pathname, the names @@ -73,9 +73,9 @@ * that no other information is required in order to locate the file that it * denotes. A relative pathname, in contrast, must be interpreted in terms of * information taken from some other pathname. By default the classes in the - * java.io package always resolve relative pathnames against the + * {@code java.io} package always resolve relative pathnames against the * current user directory. This directory is named by the system property - * user.dir, and is typically the directory in which the Java + * {@code user.dir}, and is typically the directory in which the Java * virtual machine was invoked. * *

The parent of an abstract pathname may be obtained by invoking @@ -94,14 +94,14 @@ *

* - *
  • Special cases for Chinese. When an input Locale has the + *
  • Special cases for Chinese. When an input {@code Locale} has the * language "zh" (Chinese) and an empty script value, either "Hans" (Simplified) or * "Hant" (Traditional) might be supplied, depending on the country. * When the country is "CN" (China) or "SG" (Singapore), "Hans" is supplied. @@ -2786,20 +2786,20 @@ *
  • [L("zh"), S("Hans")]
  • *
  • [L("zh"), C("CN")]
  • *
  • [L("zh")]
  • - *
  • Locale.ROOT
  • + *
  • {@code Locale.ROOT}
  • * * - * For Locale("zh", "TW"), the candidate list will be: + * For {@code Locale("zh", "TW")}, the candidate list will be: * * - *
  • Special cases for Norwegian. Both Locale("no", "NO", - * "NY") and Locale("nn", "NO") represent Norwegian + *
  • Special cases for Norwegian. Both {@code Locale("no", "NO", + * "NY")} and {@code Locale("nn", "NO")} represent Norwegian * Nynorsk. When a locale's language is "nn", the standard candidate * list is generated up to [L("nn")], and then the following * candidates are added: @@ -2807,20 +2807,20 @@ *
    • [L("no"), C("NO"), V("NY")]
    • *
    • [L("no"), C("NO")]
    • *
    • [L("no")]
    • - *
    • Locale.ROOT
    • + *
    • {@code Locale.ROOT}
    • *
    * - * If the locale is exactly Locale("no", "NO", "NY"), it is first - * converted to Locale("nn", "NO") and then the above procedure is + * If the locale is exactly {@code Locale("no", "NO", "NY")}, it is first + * converted to {@code Locale("nn", "NO")} and then the above procedure is * followed. * *

    Also, Java treats the language "no" as a synonym of Norwegian - * Bokmål "nb". Except for the single case Locale("no", - * "NO", "NY") (handled above), when an input Locale - * has language "no" or "nb", candidate Locales with + * Bokmål "nb". Except for the single case {@code Locale("no", + * "NO", "NY")} (handled above), when an input {@code Locale} + * has language "no" or "nb", candidate {@code Locale}s with * language code "no" and "nb" are interleaved, first using the * requested language, then using its synonym. For example, - * Locale("nb", "NO", "POSIX") generates the following + * {@code Locale("nb", "NO", "POSIX")} generates the following * candidate list: * *

      @@ -2830,10 +2830,10 @@ *
    • [L("no"), C("NO")]
    • *
    • [L("nb")]
    • *
    • [L("no")]
    • - *
    • Locale.ROOT
    • + *
    • {@code Locale.ROOT}
    • *
    * - * Locale("no", "NO", "POSIX") would generate the same list + * {@code Locale("no", "NO", "POSIX")} would generate the same list * except that locales with "no" would appear before the corresponding * locales with "nb".
  • * @@ -2841,19 +2841,19 @@ *

    The default implementation uses an {@link ArrayList} that * overriding implementations may modify before returning it to the * caller. However, a subclass must not modify it after it has - * been returned by getCandidateLocales. + * been returned by {@code getCandidateLocales}. * - *

    For example, if the given baseName is "Messages" - * and the given locale is + *

    For example, if the given {@code baseName} is "Messages" + * and the given {@code locale} is * Locale("ja", "", "XX"), then a - * List of Locales: + * {@code List} of {@code Locale}s: *

              *     Locale("ja", "", "XX")
              *     Locale("ja")
              *     Locale.ROOT
              * 
    * is returned. And if the resource bundles for the "ja" and - * "" Locales are found, then the runtime resource + * "" {@code Locale}s are found, then the runtime resource * lookup path (parent chain) is: *
    {@code
              *     Messages_ja -> Messages
    @@ -2864,11 +2864,11 @@
              *        qualified class name
              * @param locale
              *        the locale for which a resource bundle is desired
    -         * @return a List of candidate
    -         *        Locales for the given locale
    +         * @return a {@code List} of candidate
    +         *        {@code Locale}s for the given {@code locale}
              * @throws    NullPointerException
    -         *        if baseName or locale is
    -         *        null
    +         *        if {@code baseName} or {@code locale} is
    +         *        {@code null}
              */
             public List getCandidateLocales(String baseName, Locale locale) {
                 if (baseName == null) {
    @@ -3003,40 +3003,40 @@
             }
     
             /**
    -         * Returns a Locale to be used as a fallback locale for
    +         * Returns a {@code Locale} to be used as a fallback locale for
              * further resource bundle searches by the
    -         * ResourceBundle.getBundle factory method. This method
    +         * {@code ResourceBundle.getBundle} factory method. This method
              * is called from the factory method every time when no resulting
    -         * resource bundle has been found for baseName and
    -         * locale, where locale is either the parameter for
    -         * ResourceBundle.getBundle or the previous fallback
    +         * resource bundle has been found for {@code baseName} and
    +         * {@code locale}, where locale is either the parameter for
    +         * {@code ResourceBundle.getBundle} or the previous fallback
              * locale returned by this method.
              *
    -         * 

    The method returns null if no further fallback + *

    The method returns {@code null} if no further fallback * search is desired. * *

    The default implementation returns the {@linkplain - * Locale#getDefault() default Locale} if the given - * locale isn't the default one. Otherwise, - * null is returned. + * Locale#getDefault() default {@code Locale}} if the given + * {@code locale} isn't the default one. Otherwise, + * {@code null} is returned. * * @param baseName * the base name of the resource bundle, a fully * qualified class name for which - * ResourceBundle.getBundle has been + * {@code ResourceBundle.getBundle} has been * unable to find any resource bundles (except for the * base bundle) * @param locale - * the Locale for which - * ResourceBundle.getBundle has been + * the {@code Locale} for which + * {@code ResourceBundle.getBundle} has been * unable to find any resource bundles (except for the * base bundle) - * @return a Locale for the fallback search, - * or null if no further fallback search + * @return a {@code Locale} for the fallback search, + * or {@code null} if no further fallback search * is desired. * @throws NullPointerException - * if baseName or locale - * is null + * if {@code baseName} or {@code locale} + * is {@code null} */ public Locale getFallbackLocale(String baseName, Locale locale) { if (baseName == null) { @@ -3049,14 +3049,14 @@ /** * Instantiates a resource bundle for the given bundle name of the * given format and locale, using the given class loader if - * necessary. This method returns null if there is no + * necessary. This method returns {@code null} if there is no * resource bundle available for the given parameters. If a resource * bundle can't be instantiated due to an unexpected error, the - * error must be reported by throwing an Error or - * Exception rather than simply returning - * null. + * error must be reported by throwing an {@code Error} or + * {@code Exception} rather than simply returning + * {@code null}. * - *

    If the reload flag is true, it + *

    If the {@code reload} flag is {@code true}, it * indicates that this method is being called because the previously * loaded resource bundle has expired. * @@ -3069,7 +3069,7 @@ * to the resource bundle is open unconditionally. * *

    The default implementation instantiates a - * ResourceBundle as follows. + * {@code ResourceBundle} as follows. * *

      * @@ -3077,37 +3077,37 @@ * #toBundleName(String, Locale) toBundleName(baseName, * locale)}. * - *
    • If format is "java.class", the + *
    • If {@code format} is {@code "java.class"}, the * {@link Class} specified by the bundle name is loaded with the * given class loader. If the {@code Class} is found and accessible - * then the ResourceBundle is instantiated. The + * then the {@code ResourceBundle} is instantiated. The * resource bundle is accessible if the package of the bundle class file * is open unconditionally; otherwise, {@code IllegalAccessException} * will be thrown. - * Note that the reload flag is ignored for loading + * Note that the {@code reload} flag is ignored for loading * class-based resource bundles in this default implementation. *
    • * - *
    • If format is "java.properties", + *
    • If {@code format} is {@code "java.properties"}, * {@link #toResourceName(String, String) toResourceName(bundlename, * "properties")} is called to get the resource name. - * If reload is true, {@link + * If {@code reload} is {@code true}, {@link * ClassLoader#getResource(String) load.getResource} is called * to get a {@link URL} for creating a {@link - * URLConnection}. This URLConnection is used to + * URLConnection}. This {@code URLConnection} is used to * {@linkplain URLConnection#setUseCaches(boolean) disable the * caches} of the underlying resource loading layers, * and to {@linkplain URLConnection#getInputStream() get an - * InputStream}. + * {@code InputStream}}. * Otherwise, {@link ClassLoader#getResourceAsStream(String) * loader.getResourceAsStream} is called to get an {@link * InputStream}. Then, a {@link * PropertyResourceBundle} is constructed with the - * InputStream.
    • + * {@code InputStream}. * - *
    • If format is neither "java.class" - * nor "java.properties", an - * IllegalArgumentException is thrown.
    • + *
    • If {@code format} is neither {@code "java.class"} + * nor {@code "java.properties"}, an + * {@code IllegalArgumentException} is thrown.
    • * *
    * @@ -3120,23 +3120,23 @@ * @param format * the resource bundle format to be loaded * @param loader - * the ClassLoader to use to load the bundle + * the {@code ClassLoader} to use to load the bundle * @param reload - * the flag to indicate bundle reloading; true + * the flag to indicate bundle reloading; {@code true} * if reloading an expired resource bundle, - * false otherwise + * {@code false} otherwise * @return the resource bundle instance, - * or null if none could be found. + * or {@code null} if none could be found. * @throws NullPointerException - * if bundleName, locale, - * format, or loader is - * null, or if null is returned by + * if {@code bundleName}, {@code locale}, + * {@code format}, or {@code loader} is + * {@code null}, or if {@code null} is returned by * {@link #toBundleName(String, Locale) toBundleName} * @throws IllegalArgumentException - * if format is unknown, or if the resource + * if {@code format} is unknown, or if the resource * found for the given parameters contains malformed data. * @throws ClassCastException - * if the loaded class cannot be cast to ResourceBundle + * if the loaded class cannot be cast to {@code ResourceBundle} * @throws IllegalAccessException * if the class or its nullary constructor is not * accessible. @@ -3256,7 +3256,7 @@ /** * Returns the time-to-live (TTL) value for resource bundles that * are loaded under this - * ResourceBundle.Control. Positive time-to-live values + * {@code ResourceBundle.Control}. Positive time-to-live values * specify the number of milliseconds a bundle can remain in the * cache without being validated against the source data from which * it was constructed. The value 0 indicates that a bundle must be @@ -3267,13 +3267,13 @@ * expiration control. * *

    The expiration affects only the bundle loading process by the - * ResourceBundle.getBundle factory method. That is, + * {@code ResourceBundle.getBundle} factory method. That is, * if the factory method finds a resource bundle in the cache that * has expired, the factory method calls the {@link * #needsReload(String, Locale, String, ClassLoader, ResourceBundle, * long) needsReload} method to determine whether the resource - * bundle needs to be reloaded. If needsReload returns - * true, the cached resource bundle instance is removed + * bundle needs to be reloaded. If {@code needsReload} returns + * {@code true}, the cached resource bundle instance is removed * from the cache. Otherwise, the instance stays in the cache, * updated with the new TTL value returned by this method. * @@ -3296,8 +3296,8 @@ * expiration control, or {@link #TTL_DONT_CACHE} to disable * caching. * @throws NullPointerException - * if baseName or locale is - * null + * if {@code baseName} or {@code locale} is + * {@code null} */ public long getTimeToLive(String baseName, Locale locale) { if (baseName == null || locale == null) { @@ -3307,30 +3307,30 @@ } /** - * Determines if the expired bundle in the cache needs + * Determines if the expired {@code bundle} in the cache needs * to be reloaded based on the loading time given by - * loadTime or some other criteria. The method returns - * true if reloading is required; false - * otherwise. loadTime is a millisecond offset since - * the Calendar + * {@code loadTime} or some other criteria. The method returns + * {@code true} if reloading is required; {@code false} + * otherwise. {@code loadTime} is a millisecond offset since + * the {@code Calendar} * Epoch. * *

    - * The calling ResourceBundle.getBundle factory method - * calls this method on the ResourceBundle.Control + * The calling {@code ResourceBundle.getBundle} factory method + * calls this method on the {@code ResourceBundle.Control} * instance used for its current invocation, not on the instance * used in the invocation that originally loaded the resource * bundle. * - *

    The default implementation compares loadTime and + *

    The default implementation compares {@code loadTime} and * the last modified time of the source data of the resource * bundle. If it's determined that the source data has been modified - * since loadTime, true is - * returned. Otherwise, false is returned. This - * implementation assumes that the given format is the + * since {@code loadTime}, {@code true} is + * returned. Otherwise, {@code false} is returned. This + * implementation assumes that the given {@code format} is the * same string as its file suffix if it's not one of the default - * formats, "java.class" or - * "java.properties". + * formats, {@code "java.class"} or + * {@code "java.properties"}. * * @param baseName * the base bundle name of the resource bundle, a @@ -3341,19 +3341,19 @@ * @param format * the resource bundle format to be loaded * @param loader - * the ClassLoader to use to load the bundle + * the {@code ClassLoader} to use to load the bundle * @param bundle * the resource bundle instance that has been expired * in the cache * @param loadTime - * the time when bundle was loaded and put + * the time when {@code bundle} was loaded and put * in the cache - * @return true if the expired bundle needs to be - * reloaded; false otherwise. + * @return {@code true} if the expired bundle needs to be + * reloaded; {@code false} otherwise. * @throws NullPointerException - * if baseName, locale, - * format, loader, or - * bundle is null + * if {@code baseName}, {@code locale}, + * {@code format}, {@code loader}, or + * {@code bundle} is {@code null} */ public boolean needsReload(String baseName, Locale locale, String format, ClassLoader loader, @@ -3400,7 +3400,7 @@ } /** - * Converts the given baseName and locale + * Converts the given {@code baseName} and {@code locale} * to the bundle name. This method is called from the default * implementation of the {@link #newBundle(String, Locale, String, * ClassLoader, boolean) newBundle} and {@link #needsReload(String, @@ -3411,20 +3411,20 @@ *

              *     baseName + "_" + language + "_" + script + "_" + country + "_" + variant
              * 
    - * where language, script, country, - * and variant are the language, script, country, and variant - * values of locale, respectively. Final component values that + * where {@code language}, {@code script}, {@code country}, + * and {@code variant} are the language, script, country, and variant + * values of {@code locale}, respectively. Final component values that * are empty Strings are omitted along with the preceding '_'. When the * script is empty, the script value is omitted along with the preceding '_'. - * If all of the values are empty strings, then baseName + * If all of the values are empty strings, then {@code baseName} * is returned. * - *

    For example, if baseName is - * "baseName" and locale is + *

    For example, if {@code baseName} is + * {@code "baseName"} and {@code locale} is * Locale("ja", "", "XX"), then * "baseName_ja_ _XX" is returned. If the given - * locale is Locale("en"), then - * "baseName_en" is returned. + * locale is {@code Locale("en")}, then + * {@code "baseName_en"} is returned. * *

    Overriding this method allows applications to use different * conventions in the organization and packaging of localized @@ -3438,8 +3438,8 @@ * loaded * @return the bundle name for the resource bundle * @throws NullPointerException - * if baseName or locale - * is null + * if {@code baseName} or {@code locale} + * is {@code null} * @see java.util.spi.AbstractResourceBundleProvider#toBundleName(String, Locale) */ public String toBundleName(String baseName, Locale locale) { diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/SimpleTimeZone.java --- a/src/java.base/share/classes/java/util/SimpleTimeZone.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/SimpleTimeZone.java Tue Sep 24 09:43:43 2019 +0100 @@ -48,7 +48,7 @@ import sun.util.calendar.Gregorian; /** - * SimpleTimeZone is a concrete subclass of TimeZone + * {@code SimpleTimeZone} is a concrete subclass of {@code TimeZone} * that represents a time zone for use with a Gregorian calendar. * The class holds an offset from GMT, called raw offset, and start * and end rules for a daylight saving time schedule. Since it only holds @@ -57,7 +57,7 @@ * #setStartYear setStartYear} method can specify the year when the daylight * saving time schedule starts in effect. *

    - * To construct a SimpleTimeZone with a daylight saving time + * To construct a {@code SimpleTimeZone} with a daylight saving time * schedule, the schedule can be described with a set of rules, * start-rule and end-rule. A day when daylight saving time * starts or ends is specified by a combination of month, @@ -81,7 +81,7 @@ * or after which the rule is applied, and day-of-week to a negative {@link * Calendar#DAY_OF_WEEK DAY_OF_WEEK} field value. For example, to specify the * second Sunday of April, set month to {@link Calendar#APRIL APRIL}, - * day-of-month to 8, and day-of-week to -{@link + * day-of-month to 8, and day-of-week to {@code -}{@link * Calendar#SUNDAY SUNDAY}. * *

  • Day of week on or before day of month
    @@ -89,7 +89,7 @@ * day-of-month and day-of-week to a negative value. For * example, to specify the last Wednesday on or before the 21st of March, set * month to {@link Calendar#MARCH MARCH}, day-of-month is -21 - * and day-of-week is -{@link Calendar#WEDNESDAY WEDNESDAY}.
  • + * and day-of-week is {@code -}{@link Calendar#WEDNESDAY WEDNESDAY}. * *
  • Last day-of-week of month
    * To specify, the last day-of-week of the month, set day-of-week to a @@ -139,7 +139,7 @@ * 3600000) *
  • * These parameter rules are also applicable to the set rule methods, such as - * setStartRule. + * {@code setStartRule}. * * @since 1.1 * @see Calendar @@ -167,7 +167,7 @@ * Constructs a SimpleTimeZone with the given base time zone offset from * GMT, time zone ID, and rules for starting and ending the daylight * time. - * Both startTime and endTime are specified to be + * Both {@code startTime} and {@code endTime} are specified to be * represented in the wall clock time. The amount of daylight saving is * assumed to be 3600000 milliseconds (i.e., one hour). This constructor is * equivalent to: @@ -226,7 +226,7 @@ * Constructs a SimpleTimeZone with the given base time zone offset from * GMT, time zone ID, and rules for starting and ending the daylight * time. - * Both startTime and endTime are assumed to be + * Both {@code startTime} and {@code endTime} are assumed to be * represented in the wall clock time. This constructor is equivalent to: *
    
          *     SimpleTimeZone(rawOffset,
    @@ -286,8 +286,8 @@
          * GMT, time zone ID, and rules for starting and ending the daylight
          * time.
          * This constructor takes the full set of the start and end rules
    -     * parameters, including modes of startTime and
    -     * endTime. The mode specifies either {@link #WALL_TIME wall
    +     * parameters, including modes of {@code startTime} and
    +     * {@code endTime}. The mode specifies either {@link #WALL_TIME wall
          * time} or {@link #STANDARD_TIME standard time} or {@link #UTC_TIME UTC
          * time}.
          *
    @@ -301,7 +301,7 @@
          * @param startDayOfWeek  The daylight saving time starting day-of-week.
          *                        See the class description for the special cases of this parameter.
          * @param startTime       The daylight saving time starting time in the time mode
    -     *                        specified by startTimeMode.
    +     *                        specified by {@code startTimeMode}.
          * @param startTimeMode   The mode of the start time specified by startTime.
          * @param endMonth        The daylight saving time ending month. Month is
          *                        a {@link Calendar#MONTH MONTH} field
    @@ -311,7 +311,7 @@
          * @param endDayOfWeek    The daylight saving time ending day-of-week.
          *                        See the class description for the special cases of this parameter.
          * @param endTime         The daylight saving ending time in time mode
    -     *                        specified by endTimeMode.
    +     *                        specified by {@code endTimeMode}.
          * @param endTimeMode     The mode of the end time specified by endTime
          * @param dstSavings      The amount of time in milliseconds saved during
          *                        daylight saving time.
    @@ -369,7 +369,7 @@
          * Sets the daylight saving time start rule. For example, if daylight saving
          * time starts on the first Sunday in April at 2 am in local wall clock
          * time, you can set the start rule by calling:
    -     * 
    setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 2*60*60*1000);
    + *
    {@code setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 2*60*60*1000);}
    * * @param startMonth The daylight saving time starting month. Month is * a {@link Calendar#MONTH MONTH} field @@ -380,8 +380,8 @@ * See the class description for the special cases of this parameter. * @param startTime The daylight saving time starting time in local wall clock * time, which is local standard time in this case. - * @throws IllegalArgumentException if the startMonth, startDay, - * startDayOfWeek, or startTime parameters are out of range + * @throws IllegalArgumentException if the {@code startMonth}, {@code startDay}, + * {@code startDayOfWeek}, or {@code startTime} parameters are out of range */ public void setStartRule(int startMonth, int startDay, int startDayOfWeek, int startTime) { @@ -397,7 +397,7 @@ /** * Sets the daylight saving time start rule to a fixed date within a month. * This method is equivalent to: - *
    setStartRule(startMonth, startDay, 0, startTime)
    + *
    {@code setStartRule(startMonth, startDay, 0, startTime)}
    * * @param startMonth The daylight saving time starting month. Month is * a {@link Calendar#MONTH MONTH} field @@ -406,8 +406,8 @@ * @param startTime The daylight saving time starting time in local wall clock * time, which is local standard time in this case. * See the class description for the special cases of this parameter. - * @throws IllegalArgumentException if the startMonth, - * startDayOfMonth, or startTime parameters are out of range + * @throws IllegalArgumentException if the {@code startMonth}, + * {@code startDayOfMonth}, or {@code startTime} parameters are out of range * @since 1.2 */ public void setStartRule(int startMonth, int startDay, int startTime) { @@ -425,12 +425,12 @@ * @param startDayOfWeek The daylight saving time starting day-of-week. * @param startTime The daylight saving time starting time in local wall clock * time, which is local standard time in this case. - * @param after If true, this rule selects the first dayOfWeek on or - * after dayOfMonth. If false, this rule - * selects the last dayOfWeek on or before - * dayOfMonth. - * @throws IllegalArgumentException if the startMonth, startDay, - * startDayOfWeek, or startTime parameters are out of range + * @param after If true, this rule selects the first {@code dayOfWeek} on or + * after {@code dayOfMonth}. If false, this rule + * selects the last {@code dayOfWeek} on or before + * {@code dayOfMonth}. + * @throws IllegalArgumentException if the {@code startMonth}, {@code startDay}, + * {@code startDayOfWeek}, or {@code startTime} parameters are out of range * @since 1.2 */ public void setStartRule(int startMonth, int startDay, int startDayOfWeek, @@ -448,7 +448,7 @@ * Sets the daylight saving time end rule. For example, if daylight saving time * ends on the last Sunday in October at 2 am in wall clock time, * you can set the end rule by calling: - * setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*60*60*1000); + * {@code setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2*60*60*1000);} * * @param endMonth The daylight saving time ending month. Month is * a {@link Calendar#MONTH MONTH} field @@ -460,8 +460,8 @@ * @param endTime The daylight saving ending time in local wall clock time, * (in milliseconds within the day) which is local daylight * time in this case. - * @throws IllegalArgumentException if the endMonth, endDay, - * endDayOfWeek, or endTime parameters are out of range + * @throws IllegalArgumentException if the {@code endMonth}, {@code endDay}, + * {@code endDayOfWeek}, or {@code endTime} parameters are out of range */ public void setEndRule(int endMonth, int endDay, int endDayOfWeek, int endTime) @@ -478,7 +478,7 @@ /** * Sets the daylight saving time end rule to a fixed date within a month. * This method is equivalent to: - *
    setEndRule(endMonth, endDay, 0, endTime)
    + *
    {@code setEndRule(endMonth, endDay, 0, endTime)}
    * * @param endMonth The daylight saving time ending month. Month is * a {@link Calendar#MONTH MONTH} field @@ -487,8 +487,8 @@ * @param endTime The daylight saving ending time in local wall clock time, * (in milliseconds within the day) which is local daylight * time in this case. - * @throws IllegalArgumentException the endMonth, endDay, - * or endTime parameters are out of range + * @throws IllegalArgumentException the {@code endMonth}, {@code endDay}, + * or {@code endTime} parameters are out of range * @since 1.2 */ public void setEndRule(int endMonth, int endDay, int endTime) @@ -508,12 +508,12 @@ * @param endTime The daylight saving ending time in local wall clock time, * (in milliseconds within the day) which is local daylight * time in this case. - * @param after If true, this rule selects the first endDayOfWeek on - * or after endDay. If false, this rule - * selects the last endDayOfWeek on or before - * endDay of the month. - * @throws IllegalArgumentException the endMonth, endDay, - * endDayOfWeek, or endTime parameters are out of range + * @param after If true, this rule selects the first {@code endDayOfWeek} on + * or after {@code endDay}. If false, this rule + * selects the last {@code endDayOfWeek} on or before + * {@code endDay} of the month. + * @throws IllegalArgumentException the {@code endMonth}, {@code endDay}, + * {@code endDayOfWeek}, or {@code endTime} parameters are out of range * @since 1.2 */ public void setEndRule(int endMonth, int endDay, int endDayOfWeek, int endTime, boolean after) @@ -583,10 +583,10 @@ * uses a default {@link GregorianCalendar} object as its * underlying calendar, such as for determining leap years. Do * not use the result of this method with a calendar other than a - * default GregorianCalendar. + * default {@code GregorianCalendar}. * *

    Note: In general, clients should use - * Calendar.get(ZONE_OFFSET) + Calendar.get(DST_OFFSET) + * {@code Calendar.get(ZONE_OFFSET) + Calendar.get(DST_OFFSET)} * instead of calling this method. * * @param era The era of the given date. @@ -597,9 +597,9 @@ * @param dayOfWeek The day-of-week of the given date. * @param millis The milliseconds in day in standard local time. * @return The milliseconds to add to UTC to get local time. - * @throws IllegalArgumentException the era, - * month, day, dayOfWeek, - * or millis parameters are out of range + * @throws IllegalArgumentException the {@code era}, + * {@code month}, {@code day}, {@code dayOfWeek}, + * or {@code millis} parameters are out of range */ public int getOffset(int era, int year, int month, int day, int dayOfWeek, int millis) @@ -853,7 +853,7 @@ } /** - * Returns a clone of this SimpleTimeZone instance. + * Returns a clone of this {@code SimpleTimeZone} instance. * @return a clone of this instance. */ public Object clone() @@ -872,11 +872,11 @@ } /** - * Compares the equality of two SimpleTimeZone objects. + * Compares the equality of two {@code SimpleTimeZone} objects. * - * @param obj The SimpleTimeZone object to be compared with. - * @return True if the given obj is the same as this - * SimpleTimeZone object; false otherwise. + * @param obj The {@code SimpleTimeZone} object to be compared with. + * @return True if the given {@code obj} is the same as this + * {@code SimpleTimeZone} object; false otherwise. */ public boolean equals(Object obj) { @@ -894,9 +894,9 @@ } /** - * Returns true if this zone has the same rules and offset as another zone. + * Returns {@code true} if this zone has the same rules and offset as another zone. * @param other the TimeZone object to be compared with - * @return true if the given zone is a SimpleTimeZone and has the + * @return {@code true} if the given zone is a SimpleTimeZone and has the * same rules and offset as this one * @since 1.2 */ @@ -957,10 +957,10 @@ /** * The month in which daylight saving time starts. This value must be - * between Calendar.JANUARY and - * Calendar.DECEMBER inclusive. This value must not equal - * endMonth. - *

    If useDaylight is false, this value is ignored. + * between {@code Calendar.JANUARY} and + * {@code Calendar.DECEMBER} inclusive. This value must not equal + * {@code endMonth}. + *

    If {@code useDaylight} is false, this value is ignored. * @serial */ private int startMonth; @@ -968,34 +968,34 @@ /** * This field has two possible interpretations: *

    - *
    startMode == DOW_IN_MONTH
    + *
    {@code startMode == DOW_IN_MONTH}
    *
    - * startDay indicates the day of the month of - * startMonth on which daylight + * {@code startDay} indicates the day of the month of + * {@code startMonth} on which daylight * saving time starts, from 1 to 28, 30, or 31, depending on the - * startMonth. + * {@code startMonth}. *
    - *
    startMode != DOW_IN_MONTH
    + *
    {@code startMode != DOW_IN_MONTH}
    *
    - * startDay indicates which startDayOfWeek in the - * month startMonth daylight + * {@code startDay} indicates which {@code startDayOfWeek} in the + * month {@code startMonth} daylight * saving time starts on. For example, a value of +1 and a - * startDayOfWeek of Calendar.SUNDAY indicates the - * first Sunday of startMonth. Likewise, +2 would indicate the + * {@code startDayOfWeek} of {@code Calendar.SUNDAY} indicates the + * first Sunday of {@code startMonth}. Likewise, +2 would indicate the * second Sunday, and -1 the last Sunday. A value of 0 is illegal. *
    *
    - *

    If useDaylight is false, this value is ignored. + *

    If {@code useDaylight} is false, this value is ignored. * @serial */ private int startDay; /** * The day of the week on which daylight saving time starts. This value - * must be between Calendar.SUNDAY and - * Calendar.SATURDAY inclusive. - *

    If useDaylight is false or - * startMode == DAY_OF_MONTH, this value is ignored. + * must be between {@code Calendar.SUNDAY} and + * {@code Calendar.SATURDAY} inclusive. + *

    If {@code useDaylight} is false or + * {@code startMode == DAY_OF_MONTH}, this value is ignored. * @serial */ private int startDayOfWeek; @@ -1003,8 +1003,8 @@ /** * The time in milliseconds after midnight at which daylight saving * time starts. This value is expressed as wall time, standard time, - * or UTC time, depending on the setting of startTimeMode. - *

    If useDaylight is false, this value is ignored. + * or UTC time, depending on the setting of {@code startTimeMode}. + *

    If {@code useDaylight} is false, this value is ignored. * @serial */ private int startTime; @@ -1018,10 +1018,10 @@ /** * The month in which daylight saving time ends. This value must be - * between Calendar.JANUARY and - * Calendar.UNDECIMBER. This value must not equal - * startMonth. - *

    If useDaylight is false, this value is ignored. + * between {@code Calendar.JANUARY} and + * {@code Calendar.UNDECIMBER}. This value must not equal + * {@code startMonth}. + *

    If {@code useDaylight} is false, this value is ignored. * @serial */ private int endMonth; @@ -1029,34 +1029,34 @@ /** * This field has two possible interpretations: *

    - *
    endMode == DOW_IN_MONTH
    + *
    {@code endMode == DOW_IN_MONTH}
    *
    - * endDay indicates the day of the month of - * endMonth on which daylight + * {@code endDay} indicates the day of the month of + * {@code endMonth} on which daylight * saving time ends, from 1 to 28, 30, or 31, depending on the - * endMonth. + * {@code endMonth}. *
    - *
    endMode != DOW_IN_MONTH
    + *
    {@code endMode != DOW_IN_MONTH}
    *
    - * endDay indicates which endDayOfWeek in th - * month endMonth daylight + * {@code endDay} indicates which {@code endDayOfWeek} in th + * month {@code endMonth} daylight * saving time ends on. For example, a value of +1 and a - * endDayOfWeek of Calendar.SUNDAY indicates the - * first Sunday of endMonth. Likewise, +2 would indicate the + * {@code endDayOfWeek} of {@code Calendar.SUNDAY} indicates the + * first Sunday of {@code endMonth}. Likewise, +2 would indicate the * second Sunday, and -1 the last Sunday. A value of 0 is illegal. *
    *
    - *

    If useDaylight is false, this value is ignored. + *

    If {@code useDaylight} is false, this value is ignored. * @serial */ private int endDay; /** * The day of the week on which daylight saving time ends. This value - * must be between Calendar.SUNDAY and - * Calendar.SATURDAY inclusive. - *

    If useDaylight is false or - * endMode == DAY_OF_MONTH, this value is ignored. + * must be between {@code Calendar.SUNDAY} and + * {@code Calendar.SATURDAY} inclusive. + *

    If {@code useDaylight} is false or + * {@code endMode == DAY_OF_MONTH}, this value is ignored. * @serial */ private int endDayOfWeek; @@ -1064,15 +1064,15 @@ /** * The time in milliseconds after midnight at which daylight saving * time ends. This value is expressed as wall time, standard time, - * or UTC time, depending on the setting of endTimeMode. - *

    If useDaylight is false, this value is ignored. + * or UTC time, depending on the setting of {@code endTimeMode}. + *

    If {@code useDaylight} is false, this value is ignored. * @serial */ private int endTime; /** - * The format of endTime, either WALL_TIME, - * STANDARD_TIME, or UTC_TIME. + * The format of endTime, either {@code WALL_TIME}, + * {@code STANDARD_TIME}, or {@code UTC_TIME}. * @serial * @since 1.3 */ @@ -1081,8 +1081,8 @@ /** * The year in which daylight saving time is first observed. This is an {@link GregorianCalendar#AD AD} * value. If this value is less than 1 then daylight saving time is observed - * for all AD years. - *

    If useDaylight is false, this value is ignored. + * for all {@code AD} years. + *

    If {@code useDaylight} is false, this value is ignored. * @serial */ private int startYear; @@ -1091,7 +1091,7 @@ * The offset in milliseconds between this zone and GMT. Negative offsets * are to the west of Greenwich. To obtain local standard time, * add the offset to GMT time. To obtain local wall time it may also be - * necessary to add dstSavings. + * necessary to add {@code dstSavings}. * @serial */ private int rawOffset; @@ -1122,26 +1122,26 @@ * Variables specifying the mode of the start rule. Takes the following * values: *

    - *
    DOM_MODE
    + *
    {@code DOM_MODE}
    *
    * Exact day of week; e.g., March 1. *
    - *
    DOW_IN_MONTH_MODE
    + *
    {@code DOW_IN_MONTH_MODE}
    *
    * Day of week in month; e.g., last Sunday in March. *
    - *
    DOW_GE_DOM_MODE
    + *
    {@code DOW_GE_DOM_MODE}
    *
    * Day of week after day of month; e.g., Sunday on or after March 15. *
    - *
    DOW_LE_DOM_MODE
    + *
    {@code DOW_LE_DOM_MODE}
    *
    * Day of week before day of month; e.g., Sunday on or before March 15. *
    *
    * The setting of this field affects the interpretation of the - * startDay field. - *

    If useDaylight is false, this value is ignored. + * {@code startDay} field. + *

    If {@code useDaylight} is false, this value is ignored. * @serial * @since 1.1.4 */ @@ -1151,26 +1151,26 @@ * Variables specifying the mode of the end rule. Takes the following * values: *

    - *
    DOM_MODE
    + *
    {@code DOM_MODE}
    *
    * Exact day of week; e.g., March 1. *
    - *
    DOW_IN_MONTH_MODE
    + *
    {@code DOW_IN_MONTH_MODE}
    *
    * Day of week in month; e.g., last Sunday in March. *
    - *
    DOW_GE_DOM_MODE
    + *
    {@code DOW_GE_DOM_MODE}
    *
    * Day of week after day of month; e.g., Sunday on or after March 15. *
    - *
    DOW_LE_DOM_MODE
    + *
    {@code DOW_LE_DOM_MODE}
    *
    * Day of week before day of month; e.g., Sunday on or before March 15. *
    *
    * The setting of this field affects the interpretation of the - * endDay field. - *

    If useDaylight is false, this value is ignored. + * {@code endDay} field. + *

    If {@code useDaylight} is false, this value is ignored. * @serial * @since 1.1.4 */ @@ -1180,7 +1180,7 @@ * A positive value indicating the amount of time saved during DST in * milliseconds. * Typically one hour (3600000); sometimes 30 minutes (1800000). - *

    If useDaylight is false, this value is ignored. + *

    If {@code useDaylight} is false, this value is ignored. * @serial * @since 1.1.4 */ @@ -1260,17 +1260,17 @@ * *

    1
    *
    - * JDK 1.1.4 or later. Includes three new fields: startMode, - * endMode, and dstSavings. + * JDK 1.1.4 or later. Includes three new fields: {@code startMode}, + * {@code endMode}, and {@code dstSavings}. *
    *
    2
    *
    - * JDK 1.3 or later. Includes two new fields: startTimeMode - * and endTimeMode. + * JDK 1.3 or later. Includes two new fields: {@code startTimeMode} + * and {@code endTimeMode}. *
    * * When streaming out this class, the most recent format - * and the highest allowable serialVersionOnStream + * and the highest allowable {@code serialVersionOnStream} * is written. * @serial * @since 1.1.4 @@ -1625,16 +1625,16 @@ * Save the state of this object to a stream (i.e., serialize it). * * @serialData We write out two formats, a JDK 1.1 compatible format, using - * DOW_IN_MONTH_MODE rules, in the required section, followed + * {@code DOW_IN_MONTH_MODE} rules, in the required section, followed * by the full rules, in packed format, in the optional section. The * optional section will be ignored by JDK 1.1 code upon stream in. *

    Contents of the optional section: The length of a byte array is * emitted (int); this is 4 as of this release. The byte array of the given * length is emitted. The contents of the byte array are the true values of - * the fields startDay, startDayOfWeek, - * endDay, and endDayOfWeek. The values of these + * the fields {@code startDay}, {@code startDayOfWeek}, + * {@code endDay}, and {@code endDayOfWeek}. The values of these * fields in the required section are approximate values suited to the rule - * mode DOW_IN_MONTH_MODE, which is the only mode recognized by + * mode {@code DOW_IN_MONTH_MODE}, which is the only mode recognized by * JDK 1.1. */ @java.io.Serial diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/TimeZone.java --- a/src/java.base/share/classes/java/util/TimeZone.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/TimeZone.java Tue Sep 24 09:43:43 2019 +0100 @@ -48,44 +48,44 @@ import sun.util.locale.provider.TimeZoneNameUtility; /** - * TimeZone represents a time zone offset, and also figures out daylight + * {@code TimeZone} represents a time zone offset, and also figures out daylight * savings. * *

    - * Typically, you get a TimeZone using getDefault - * which creates a TimeZone based on the time zone where the program - * is running. For example, for a program running in Japan, getDefault - * creates a TimeZone object based on Japanese Standard Time. + * Typically, you get a {@code TimeZone} using {@code getDefault} + * which creates a {@code TimeZone} based on the time zone where the program + * is running. For example, for a program running in Japan, {@code getDefault} + * creates a {@code TimeZone} object based on Japanese Standard Time. * *

    - * You can also get a TimeZone using getTimeZone + * You can also get a {@code TimeZone} using {@code getTimeZone} * along with a time zone ID. For instance, the time zone ID for the * U.S. Pacific Time zone is "America/Los_Angeles". So, you can get a - * U.S. Pacific Time TimeZone object with: + * U.S. Pacific Time {@code TimeZone} object with: *

      * TimeZone tz = TimeZone.getTimeZone("America/Los_Angeles");
      * 
    - * You can use the getAvailableIDs method to iterate through + * You can use the {@code getAvailableIDs} method to iterate through * all the supported time zone IDs. You can then choose a - * supported ID to get a TimeZone. + * supported ID to get a {@code TimeZone}. * If the time zone you want is not represented by one of the * supported IDs, then a custom time zone ID can be specified to * produce a TimeZone. The syntax of a custom time zone ID is: * *
      * CustomID:
    - *         GMT Sign Hours : Minutes
    - *         GMT Sign Hours Minutes
    - *         GMT Sign Hours
    + *         {@code GMT} Sign Hours {@code :} Minutes
    + *         {@code GMT} Sign Hours Minutes
    + *         {@code GMT} Sign Hours
      * Sign: one of
    - *         + -
    + *         {@code + -}
      * Hours:
      *         Digit
      *         Digit Digit
      * Minutes:
      *         Digit Digit
      * Digit: one of
    - *         0 1 2 3 4 5 6 7 8 9
    + *         {@code 0 1 2 3 4 5 6 7 8 9}
      * 
    * * Hours must be between 0 to 23 and Minutes must be @@ -95,22 +95,22 @@ * The format is locale independent and digits must be taken from the * Basic Latin block of the Unicode standard. No daylight saving time * transition schedule can be specified with a custom time zone ID. If - * the specified string doesn't match the syntax, "GMT" + * the specified string doesn't match the syntax, {@code "GMT"} * is used. *

    - * When creating a TimeZone, the specified custom time + * When creating a {@code TimeZone}, the specified custom time * zone ID is normalized in the following syntax: *

      * NormalizedCustomID:
    - *         GMT Sign TwoDigitHours : Minutes
    + *         {@code GMT} Sign TwoDigitHours {@code :} Minutes
      * Sign: one of
    - *         + -
    + *         {@code + -}
      * TwoDigitHours:
      *         Digit Digit
      * Minutes:
      *         Digit Digit
      * Digit: one of
    - *         0 1 2 3 4 5 6 7 8 9
    + *         {@code 0 1 2 3 4 5 6 7 8 9}
      * 
    * For example, TimeZone.getTimeZone("GMT-8").getID() returns "GMT-08:00". * @@ -139,7 +139,7 @@ } /** - * A style specifier for getDisplayName() indicating + * A style specifier for {@code getDisplayName()} indicating * a short name, such as "PST." * @see #LONG * @since 1.2 @@ -147,7 +147,7 @@ public static final int SHORT = 0; /** - * A style specifier for getDisplayName() indicating + * A style specifier for {@code getDisplayName()} indicating * a long name, such as "Pacific Standard Time." * @see #SHORT * @since 1.2 @@ -168,7 +168,7 @@ * daylight savings. This is the offset to add to UTC to get local time. *

    * This method returns a historically correct offset if an - * underlying TimeZone implementation subclass + * underlying {@code TimeZone} implementation subclass * supports historical Daylight Saving Time schedule and GMT * offset changes. * @@ -246,7 +246,7 @@ * Sets the base time zone offset to GMT. * This is the offset to add to UTC to get local time. *

    - * If an underlying TimeZone implementation subclass + * If an underlying {@code TimeZone} implementation subclass * supports historical GMT offset changes, the specified GMT * offset is set as the latest GMT offset and the difference from * the known latest GMT offset value is used to adjust all @@ -262,7 +262,7 @@ * affected by daylight saving time, it is called raw * offset. *

    - * If an underlying TimeZone implementation subclass + * If an underlying {@code TimeZone} implementation subclass * supports historical GMT offset changes, the method returns the * raw offset value of the current date. In Honolulu, for example, * its raw offset changed from GMT-10:30 to GMT-10:00 in 1947, and @@ -376,10 +376,10 @@ * *

    When looking up a time zone name, the {@linkplain * ResourceBundle.Control#getCandidateLocales(String,Locale) default - * Locale search path of ResourceBundle} derived + * {@code Locale} search path of {@code ResourceBundle}} derived * from the specified {@code locale} is used. (No {@linkplain * ResourceBundle.Control#getFallbackLocale(String,Locale) fallback - * Locale} search is performed.) If a time zone name in any + * {@code Locale}} search is performed.) If a time zone name in any * {@code Locale} of the search path, including {@link Locale#ROOT}, is * found, the name is returned. Otherwise, a string in the * normalized custom ID format is returned. @@ -504,14 +504,14 @@ public abstract boolean inDaylightTime(Date date); /** - * Gets the TimeZone for the given ID. + * Gets the {@code TimeZone} for the given ID. * - * @param ID the ID for a TimeZone, either an abbreviation + * @param ID the ID for a {@code TimeZone}, either an abbreviation * such as "PST", a full name such as "America/Los_Angeles", or a custom * ID such as "GMT-8:00". Note that the support of abbreviations is * for JDK 1.1.x compatibility only and full names should be used. * - * @return the specified TimeZone, or the GMT zone if the given ID + * @return the specified {@code TimeZone}, or the GMT zone if the given ID * cannot be understood. */ public static synchronized TimeZone getTimeZone(String ID) { @@ -733,7 +733,7 @@ * Returns true if this zone has the same rule and offset as another zone. * That is, if this zone differs only in ID, if at all. Returns false * if the other zone is null. - * @param other the TimeZone object to be compared with + * @param other the {@code TimeZone} object to be compared with * @return true if the other zone is not null and is the same as this one, * with the possible exception of the ID * @since 1.2 @@ -744,9 +744,9 @@ } /** - * Creates a copy of this TimeZone. + * Creates a copy of this {@code TimeZone}. * - * @return a clone of this TimeZone + * @return a clone of this {@code TimeZone} */ public Object clone() { @@ -765,10 +765,10 @@ // =======================privates=============================== /** - * The string identifier of this TimeZone. This is a - * programmatic identifier used internally to look up TimeZone + * The string identifier of this {@code TimeZone}. This is a + * programmatic identifier used internally to look up {@code TimeZone} * objects from the system table and also to map them to their localized - * display names. ID values are unique in the system + * display names. {@code ID} values are unique in the system * table but may not be for dynamically created zones. * @serial */ diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/TooManyListenersException.java --- a/src/java.base/share/classes/java/util/TooManyListenersException.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/TooManyListenersException.java Tue Sep 24 09:43:43 2019 +0100 @@ -27,7 +27,7 @@ /** *

    - * The TooManyListenersException Exception is used as part of + * The {@code TooManyListenersException } Exception is used as part of * the Java Event model to annotate and implement a unicast special case of * a multicast Event Source. *

    diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/jar/JarEntry.java --- a/src/java.base/share/classes/java/util/jar/JarEntry.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/jar/JarEntry.java Tue Sep 24 09:43:43 2019 +0100 @@ -42,11 +42,11 @@ CodeSigner[] signers; /** - * Creates a new JarEntry for the specified JAR file + * Creates a new {@code JarEntry} for the specified JAR file * entry name. * * @param name the JAR file entry name - * @throws NullPointerException if the entry name is null + * @throws NullPointerException if the entry name is {@code null} * @throws IllegalArgumentException if the entry name is longer than * 0xFFFF bytes. */ @@ -55,20 +55,20 @@ } /** - * Creates a new JarEntry with fields taken from the - * specified ZipEntry object. - * @param ze the ZipEntry object to create the - * JarEntry from + * Creates a new {@code JarEntry} with fields taken from the + * specified {@code ZipEntry} object. + * @param ze the {@code ZipEntry} object to create the + * {@code JarEntry} from */ public JarEntry(ZipEntry ze) { super(ze); } /** - * Creates a new JarEntry with fields taken from the - * specified JarEntry object. + * Creates a new {@code JarEntry} with fields taken from the + * specified {@code JarEntry} object. * - * @param je the JarEntry to copy + * @param je the {@code JarEntry} to copy */ public JarEntry(JarEntry je) { this((ZipEntry)je); @@ -78,11 +78,11 @@ } /** - * Returns the Manifest Attributes for this - * entry, or null if none. + * Returns the {@code Manifest} {@code Attributes} for this + * entry, or {@code null} if none. * - * @return the Manifest Attributes for this - * entry, or null if none + * @return the {@code Manifest} {@code Attributes} for this + * entry, or {@code null} if none * @throws IOException if an I/O error has occurred */ public Attributes getAttributes() throws IOException { @@ -90,11 +90,11 @@ } /** - * Returns the Certificate objects for this entry, or - * null if none. This method can only be called once - * the JarEntry has been completely verified by reading + * Returns the {@code Certificate} objects for this entry, or + * {@code null} if none. This method can only be called once + * the {@code JarEntry} has been completely verified by reading * from the entry input stream until the end of the stream has been - * reached. Otherwise, this method will return null. + * reached. Otherwise, this method will return {@code null}. * *

    The returned certificate array comprises all the signer certificates * that were used to verify this entry. Each signer certificate is @@ -103,25 +103,25 @@ * bottom-to-top (i.e., with the signer certificate first and the (root) * certificate authority last). * - * @return the Certificate objects for this entry, or - * null if none. + * @return the {@code Certificate} objects for this entry, or + * {@code null} if none. */ public Certificate[] getCertificates() { return certs == null ? null : certs.clone(); } /** - * Returns the CodeSigner objects for this entry, or - * null if none. This method can only be called once - * the JarEntry has been completely verified by reading + * Returns the {@code CodeSigner} objects for this entry, or + * {@code null} if none. This method can only be called once + * the {@code JarEntry} has been completely verified by reading * from the entry input stream until the end of the stream has been - * reached. Otherwise, this method will return null. + * reached. Otherwise, this method will return {@code null}. * *

    The returned array comprises all the code signers that have signed * this entry. * - * @return the CodeSigner objects for this entry, or - * null if none. + * @return the {@code CodeSigner} objects for this entry, or + * {@code null} if none. * * @since 1.5 */ diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/jar/JarInputStream.java --- a/src/java.base/share/classes/java/util/jar/JarInputStream.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/jar/JarInputStream.java Tue Sep 24 09:43:43 2019 +0100 @@ -31,10 +31,10 @@ import jdk.internal.util.jar.JarIndex; /** - * The JarInputStream class is used to read the contents of + * The {@code JarInputStream} class is used to read the contents of * a JAR file from any input stream. It extends the class - * java.util.zip.ZipInputStream with support for reading - * an optional Manifest entry. The Manifest + * {@code java.util.zip.ZipInputStream} with support for reading + * an optional {@code Manifest} entry. The {@code Manifest} * can be used to store meta-information about the JAR file and its entries. * * @author David Connelly @@ -52,7 +52,7 @@ private boolean tryManifest; /** - * Creates a new JarInputStream and reads the optional + * Creates a new {@code JarInputStream} and reads the optional * manifest. If a manifest is present, also attempts to verify * the signatures if the JarInputStream is signed. * @param in the actual input stream @@ -63,7 +63,7 @@ } /** - * Creates a new JarInputStream and reads the optional + * Creates a new {@code JarInputStream} and reads the optional * manifest. If a manifest is present and verify is true, also attempts * to verify the signatures if the JarInputStream is signed. * @@ -116,11 +116,11 @@ } /** - * Returns the Manifest for this JAR file, or - * null if none. + * Returns the {@code Manifest} for this JAR file, or + * {@code null} if none. * - * @return the Manifest for this JAR file, or - * null if none. + * @return the {@code Manifest} for this JAR file, or + * {@code null} if none. */ public Manifest getManifest() { return man; @@ -181,21 +181,21 @@ /** * Reads from the current JAR file entry into an array of bytes. - * If len is not zero, the method + * If {@code len} is not zero, the method * blocks until some input is available; otherwise, no - * bytes are read and 0 is returned. + * bytes are read and {@code 0} is returned. * If verification has been enabled, any invalid signature * on the current entry will be reported at some point before the * end of the entry is reached. * @param b the buffer into which the data is read - * @param off the start offset in the destination array b + * @param off the start offset in the destination array {@code b} * @param len the maximum number of bytes to read * @return the actual number of bytes read, or -1 if the end of the * entry is reached - * @throws NullPointerException If b is null. - * @throws IndexOutOfBoundsException If off is negative, - * len is negative, or len is greater than - * b.length - off + * @throws NullPointerException If {@code b} is {@code null}. + * @throws IndexOutOfBoundsException If {@code off} is negative, + * {@code len} is negative, or {@code len} is greater than + * {@code b.length - off} * @throws ZipException if a ZIP file error has occurred * @throws IOException if an I/O error has occurred * @throws SecurityException if any of the jar file entries @@ -215,13 +215,13 @@ } /** - * Creates a new JarEntry (ZipEntry) for the + * Creates a new {@code JarEntry} ({@code ZipEntry}) for the * specified JAR file entry name. The manifest attributes of * the specified JAR file entry name will be copied to the new * JarEntry. * * @param name the name of the JAR/ZIP file entry - * @return the JarEntry object just created + * @return the {@code JarEntry} object just created */ protected ZipEntry createZipEntry(String name) { JarEntry e = new JarEntry(name); diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/jar/JarOutputStream.java --- a/src/java.base/share/classes/java/util/jar/JarOutputStream.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/jar/JarOutputStream.java Tue Sep 24 09:43:43 2019 +0100 @@ -29,11 +29,11 @@ import java.io.*; /** - * The JarOutputStream class is used to write the contents + * The {@code JarOutputStream} class is used to write the contents * of a JAR file to any output stream. It extends the class - * java.util.zip.ZipOutputStream with support - * for writing an optional Manifest entry. The - * Manifest can be used to specify meta-information about + * {@code java.util.zip.ZipOutputStream} with support + * for writing an optional {@code Manifest} entry. The + * {@code Manifest} can be used to specify meta-information about * the JAR file and its entries. * * @author David Connelly @@ -46,12 +46,12 @@ private static final int JAR_MAGIC = 0xCAFE; /** - * Creates a new JarOutputStream with the specified - * Manifest. The manifest is written as the first + * Creates a new {@code JarOutputStream} with the specified + * {@code Manifest}. The manifest is written as the first * entry to the output stream. * * @param out the actual output stream - * @param man the optional Manifest + * @param man the optional {@code Manifest} * @throws IOException if an I/O error has occurred */ public JarOutputStream(OutputStream out, Manifest man) throws IOException { @@ -66,7 +66,7 @@ } /** - * Creates a new JarOutputStream with no manifest. + * Creates a new {@code JarOutputStream} with no manifest. * @param out the actual output stream * @throws IOException if an I/O error has occurred */ diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/jar/package-info.java --- a/src/java.base/share/classes/java/util/jar/package-info.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/jar/package-info.java Tue Sep 24 09:43:43 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -31,7 +31,7 @@ * *

    Package Specification

    * - * The java.util.jar package is based on the following + * The {@code java.util.jar} package is based on the following * specifications: * *
      diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/regex/Pattern.java --- a/src/java.base/share/classes/java/util/regex/Pattern.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/regex/Pattern.java Tue Sep 24 09:43:43 2019 +0100 @@ -357,7 +357,7 @@ * d m s * u x U * on - off - * (?idmsuxU-idmsuxU:X{@code )}   + * {@code (?idmsuxU-idmsuxU:}X{@code )}   * X, as a non-capturing group with the * given flags i d * m s u diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/regex/package-info.java --- a/src/java.base/share/classes/java/util/regex/package-info.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/regex/package-info.java Tue Sep 24 09:43:43 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -37,7 +37,7 @@ * interface in order to support matching against characters from a * wide variety of input sources.

      * - *

      Unless otherwise noted, passing a null argument to a + *

      Unless otherwise noted, passing a {@code null} argument to a * method in any class or interface in this package will cause a * {@link java.lang.NullPointerException NullPointerException} to be * thrown. diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/spi/CalendarNameProvider.java --- a/src/java.base/share/classes/java/util/spi/CalendarNameProvider.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/spi/CalendarNameProvider.java Tue Sep 24 09:43:43 2019 +0100 @@ -190,9 +190,9 @@ /** * Returns the string representation (display name) of the calendar - * field value in the given style and - * locale. If no string representation is - * applicable, null is returned. + * {@code field value} in the given {@code style} and + * {@code locale}. If no string representation is + * applicable, {@code null} is returned. * *

      {@code field} is a {@code Calendar} field index, such as {@link * Calendar#MONTH}. The time zone fields, {@link Calendar#ZONE_OFFSET} and diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/spi/CurrencyNameProvider.java --- a/src/java.base/share/classes/java/util/spi/CurrencyNameProvider.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/spi/CurrencyNameProvider.java Tue Sep 24 09:43:43 2019 +0100 @@ -63,10 +63,10 @@ * @param locale the desired locale * @return the symbol of the given currency code for the specified locale, or null if * the symbol is not available for the locale - * @throws NullPointerException if currencyCode or - * locale is null - * @throws IllegalArgumentException if currencyCode is not in - * the form of three upper-case letters, or locale isn't + * @throws NullPointerException if {@code currencyCode} or + * {@code locale} is null + * @throws IllegalArgumentException if {@code currencyCode} is not in + * the form of three upper-case letters, or {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. @@ -84,13 +84,13 @@ * @param locale the desired locale * @return the name for the currency that is appropriate for display to the * user, or null if the name is not available for the locale - * @throws IllegalArgumentException if currencyCode is not in - * the form of three upper-case letters, or locale isn't + * @throws IllegalArgumentException if {@code currencyCode} is not in + * the form of three upper-case letters, or {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. - * @throws NullPointerException if currencyCode or - * locale is null + * @throws NullPointerException if {@code currencyCode} or + * {@code locale} is {@code null} * @since 1.7 */ public String getDisplayName(String currencyCode, Locale locale) { diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/spi/LocaleNameProvider.java --- a/src/java.base/share/classes/java/util/spi/LocaleNameProvider.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/spi/LocaleNameProvider.java Tue Sep 24 09:43:43 2019 +0100 @@ -48,10 +48,10 @@ * Returns a localized name for the given * IETF BCP47 language code and the given locale that is appropriate for * display to the user. - * For example, if languageCode is "fr" and locale - * is en_US, getDisplayLanguage() will return "French"; if languageCode - * is "en" and locale is fr_FR, getDisplayLanguage() will return "anglais". - * If the name returned cannot be localized according to locale, + * For example, if {@code languageCode} is "fr" and {@code locale} + * is en_US, getDisplayLanguage() will return "French"; if {@code languageCode} + * is "en" and {@code locale} is fr_FR, getDisplayLanguage() will return "anglais". + * If the name returned cannot be localized according to {@code locale}, * (say, the provider does not have a Japanese name for Croatian), * this method returns null. * @param languageCode the language code string in the form of two to eight @@ -59,9 +59,9 @@ * @param locale the desired locale * @return the name of the given language code for the specified locale, or null if it's not * available. - * @throws NullPointerException if languageCode or locale is null - * @throws IllegalArgumentException if languageCode is not in the form of - * two or three lower-case letters, or locale isn't + * @throws NullPointerException if {@code languageCode} or {@code locale} is null + * @throws IllegalArgumentException if {@code languageCode} is not in the form of + * two or three lower-case letters, or {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. @@ -73,10 +73,10 @@ * Returns a localized name for the given * IETF BCP47 script code and the given locale that is appropriate for * display to the user. - * For example, if scriptCode is "Latn" and locale - * is en_US, getDisplayScript() will return "Latin"; if scriptCode - * is "Cyrl" and locale is fr_FR, getDisplayScript() will return "cyrillique". - * If the name returned cannot be localized according to locale, + * For example, if {@code scriptCode} is "Latn" and {@code locale} + * is en_US, getDisplayScript() will return "Latin"; if {@code scriptCode} + * is "Cyrl" and {@code locale} is fr_FR, getDisplayScript() will return "cyrillique". + * If the name returned cannot be localized according to {@code locale}, * (say, the provider does not have a Japanese name for Cyrillic), * this method returns null. The default implementation returns null. * @param scriptCode the four letter script code string in the form of title-case @@ -86,9 +86,9 @@ * @param locale the desired locale * @return the name of the given script code for the specified locale, or null if it's not * available. - * @throws NullPointerException if scriptCode or locale is null - * @throws IllegalArgumentException if scriptCode is not in the form of - * four title case letters, or locale isn't + * @throws NullPointerException if {@code scriptCode} or {@code locale} is null + * @throws IllegalArgumentException if {@code scriptCode} is not in the form of + * four title case letters, or {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. @@ -103,10 +103,10 @@ * Returns a localized name for the given * IETF BCP47 region code (either ISO 3166 country code or UN M.49 area * codes) and the given locale that is appropriate for display to the user. - * For example, if countryCode is "FR" and locale - * is en_US, getDisplayCountry() will return "France"; if countryCode - * is "US" and locale is fr_FR, getDisplayCountry() will return "Etats-Unis". - * If the name returned cannot be localized according to locale, + * For example, if {@code countryCode} is "FR" and {@code locale} + * is en_US, getDisplayCountry() will return "France"; if {@code countryCode} + * is "US" and {@code locale} is fr_FR, getDisplayCountry() will return "Etats-Unis". + * If the name returned cannot be localized according to {@code locale}, * (say, the provider does not have a Japanese name for Croatia), * this method returns null. * @param countryCode the country(region) code string in the form of two @@ -115,9 +115,9 @@ * @param locale the desired locale * @return the name of the given country code for the specified locale, or null if it's not * available. - * @throws NullPointerException if countryCode or locale is null - * @throws IllegalArgumentException if countryCode is not in the form of - * two upper-case letters or three digit letters, or locale isn't + * @throws NullPointerException if {@code countryCode} or {@code locale} is null + * @throws IllegalArgumentException if {@code countryCode} is not in the form of + * two upper-case letters or three digit letters, or {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. @@ -128,14 +128,14 @@ /** * Returns a localized name for the given variant code and the given locale that * is appropriate for display to the user. - * If the name returned cannot be localized according to locale, + * If the name returned cannot be localized according to {@code locale}, * this method returns null. * @param variant the variant string * @param locale the desired locale * @return the name of the given variant string for the specified locale, or null if it's not * available. - * @throws NullPointerException if variant or locale is null - * @throws IllegalArgumentException if locale isn't + * @throws NullPointerException if {@code variant} or {@code locale} is null + * @throws IllegalArgumentException if {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/spi/LocaleServiceProvider.java --- a/src/java.base/share/classes/java/util/spi/LocaleServiceProvider.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/spi/LocaleServiceProvider.java Tue Sep 24 09:43:43 2019 +0100 @@ -33,12 +33,12 @@ * interfaces (SPIs). *

      * Locale sensitive service provider interfaces are interfaces that - * correspond to locale sensitive classes in the java.text - * and java.util packages. The interfaces enable the + * correspond to locale sensitive classes in the {@code java.text} + * and {@code java.util} packages. The interfaces enable the * construction of locale sensitive objects and the retrieval of * localized names for these packages. Locale sensitive factory methods - * and methods for name retrieval in the java.text and - * java.util packages use implementations of the provider + * and methods for name retrieval in the {@code java.text} and + * {@code java.util} packages use implementations of the provider * interfaces to offer support for locales beyond the set of locales * supported by the Java runtime environment itself. * @@ -68,17 +68,17 @@ *

        * META-INF/services/java.text.spi.DateFormatProvider
        * 
      - * And the file java.text.spi.DateFormatProvider should have + * And the file {@code java.text.spi.DateFormatProvider} should have * a line such as: *
      - * com.foo.DateFormatProviderImpl
      + * {@code com.foo.DateFormatProviderImpl}
        * 
      * which is the fully qualified class name of the class implementing - * DateFormatProvider. + * {@code DateFormatProvider}. *

      Invocation of Locale Sensitive Services

      *

      * Locale sensitive factory methods and methods for name retrieval in the - * java.text and java.util packages invoke + * {@code java.text} and {@code java.util} packages invoke * service provider methods when needed to support the requested locale. * The methods first check whether the Java runtime environment itself * supports the requested locale, and use its support if available. @@ -93,7 +93,7 @@ * supports the requested locale, the methods go through a list of candidate * locales and repeat the availability check for each until a match is found. * The algorithm used for creating a list of candidate locales is same as - * the one used by ResourceBundle by default (see + * the one used by {@code ResourceBundle} by default (see * {@link java.util.ResourceBundle.Control#getCandidateLocales getCandidateLocales} * for the details). Even if a locale is resolved from the candidate list, * methods that return requested objects or names are invoked with the original @@ -104,7 +104,7 @@ * Providers of names (but not providers of other objects) are allowed to * return null for some name requests even for locales that they claim to * support by including them in their return value for - * getAvailableLocales. Similarly, the Java runtime + * {@code getAvailableLocales}. Similarly, the Java runtime * environment itself may not have all names for all locales that it * supports. This is because the sets of objects for which names are * requested can be large and vary over time, so that it's not always diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/spi/TimeZoneNameProvider.java --- a/src/java.base/share/classes/java/util/spi/TimeZoneNameProvider.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/spi/TimeZoneNameProvider.java Tue Sep 24 09:43:43 2019 +0100 @@ -57,7 +57,7 @@ * "tzdata", and the specification of the data format is part of the zic.8 * man page, which is contained in a file whose name starts with "tzcode". *

      - * If daylight is true, the method should return a name + * If {@code daylight} is true, the method should return a name * appropriate for daylight saving time even if the specified time zone * has not observed daylight saving time in the past. * @@ -68,11 +68,11 @@ * @param locale the desired locale * @return the human-readable name of the given time zone in the * given locale, or null if it's not available. - * @throws IllegalArgumentException if style is invalid, - * or locale isn't one of the locales returned from + * @throws IllegalArgumentException if {@code style} is invalid, + * or {@code locale} isn't one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. - * @throws NullPointerException if ID or locale + * @throws NullPointerException if {@code ID} or {@code locale} * is null * @see java.util.TimeZone#getDisplayName(boolean, int, java.util.Locale) */ @@ -96,11 +96,11 @@ * @param locale the desired locale * @return the human-readable generic name of the given time zone in the * given locale, or {@code null} if it's not available. - * @throws IllegalArgumentException if style is invalid, - * or locale isn't one of the locales returned from + * @throws IllegalArgumentException if {@code style} is invalid, + * or {@code locale} isn't one of the locales returned from * {@link LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. - * @throws NullPointerException if ID or locale + * @throws NullPointerException if {@code ID} or {@code locale} * is {@code null} * @since 1.8 */ diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/zip/CheckedInputStream.java --- a/src/java.base/share/classes/java/util/zip/CheckedInputStream.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/zip/CheckedInputStream.java Tue Sep 24 09:43:43 2019 +0100 @@ -65,18 +65,18 @@ } /** - * Reads into an array of bytes. If len is not zero, the method + * Reads into an array of bytes. If {@code len} is not zero, the method * blocks until some input is available; otherwise, no - * bytes are read and 0 is returned. + * bytes are read and {@code 0} is returned. * @param buf the buffer into which the data is read - * @param off the start offset in the destination array b + * @param off the start offset in the destination array {@code b} * @param len the maximum number of bytes read * @return the actual number of bytes read, or -1 if the end * of the stream is reached. - * @throws NullPointerException If buf is null. - * @throws IndexOutOfBoundsException If off is negative, - * len is negative, or len is greater than - * buf.length - off + * @throws NullPointerException If {@code buf} is {@code null}. + * @throws IndexOutOfBoundsException If {@code off} is negative, + * {@code len} is negative, or {@code len} is greater than + * {@code buf.length - off} * @throws IOException if an I/O error has occurred */ public int read(byte[] buf, int off, int len) throws IOException { diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/zip/GZIPInputStream.java --- a/src/java.base/share/classes/java/util/zip/GZIPInputStream.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/zip/GZIPInputStream.java Tue Sep 24 09:43:43 2019 +0100 @@ -93,19 +93,19 @@ } /** - * Reads uncompressed data into an array of bytes. If len is not + * Reads uncompressed data into an array of bytes. If {@code len} is not * zero, the method will block until some input can be decompressed; otherwise, - * no bytes are read and 0 is returned. + * no bytes are read and {@code 0} is returned. * @param buf the buffer into which the data is read - * @param off the start offset in the destination array b + * @param off the start offset in the destination array {@code b} * @param len the maximum number of bytes read * @return the actual number of bytes read, or -1 if the end of the * compressed input stream is reached * - * @throws NullPointerException If buf is null. - * @throws IndexOutOfBoundsException If off is negative, - * len is negative, or len is greater than - * buf.length - off + * @throws NullPointerException If {@code buf} is {@code null}. + * @throws IndexOutOfBoundsException If {@code off} is negative, + * {@code len} is negative, or {@code len} is greater than + * {@code buf.length - off} * @throws ZipException if the compressed input data is corrupt. * @throws IOException if an I/O error has occurred. * diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/zip/InflaterInputStream.java --- a/src/java.base/share/classes/java/util/zip/InflaterInputStream.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/zip/InflaterInputStream.java Tue Sep 24 09:43:43 2019 +0100 @@ -124,18 +124,18 @@ } /** - * Reads uncompressed data into an array of bytes. If len is not + * Reads uncompressed data into an array of bytes. If {@code len} is not * zero, the method will block until some input can be decompressed; otherwise, - * no bytes are read and 0 is returned. + * no bytes are read and {@code 0} is returned. * @param b the buffer into which the data is read - * @param off the start offset in the destination array b + * @param off the start offset in the destination array {@code b} * @param len the maximum number of bytes read * @return the actual number of bytes read, or -1 if the end of the * compressed input is reached or a preset dictionary is needed - * @throws NullPointerException If b is null. - * @throws IndexOutOfBoundsException If off is negative, - * len is negative, or len is greater than - * b.length - off + * @throws NullPointerException If {@code b} is {@code null}. + * @throws IndexOutOfBoundsException If {@code off} is negative, + * {@code len} is negative, or {@code len} is greater than + * {@code b.length - off} * @throws ZipException if a ZIP format error has occurred * @throws IOException if an I/O error has occurred */ @@ -248,13 +248,13 @@ } /** - * Tests if this input stream supports the mark and - * reset methods. The markSupported - * method of InflaterInputStream returns - * false. + * Tests if this input stream supports the {@code mark} and + * {@code reset} methods. The {@code markSupported} + * method of {@code InflaterInputStream} returns + * {@code false}. * - * @return a boolean indicating if this stream type supports - * the mark and reset methods. + * @return a {@code boolean} indicating if this stream type supports + * the {@code mark} and {@code reset} methods. * @see java.io.InputStream#mark(int) * @see java.io.InputStream#reset() */ @@ -265,7 +265,7 @@ /** * Marks the current position in this input stream. * - *

      The mark method of InflaterInputStream + *

      The {@code mark} method of {@code InflaterInputStream} * does nothing. * * @param readlimit the maximum limit of bytes that can be read before @@ -277,11 +277,11 @@ /** * Repositions this stream to the position at the time the - * mark method was last called on this input stream. + * {@code mark} method was last called on this input stream. * - *

      The method reset for class - * InflaterInputStream does nothing except throw an - * IOException. + *

      The method {@code reset} for class + * {@code InflaterInputStream} does nothing except throw an + * {@code IOException}. * * @throws IOException if this method is invoked. * @see java.io.InputStream#mark(int) diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/zip/ZipException.java --- a/src/java.base/share/classes/java/util/zip/ZipException.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/zip/ZipException.java Tue Sep 24 09:43:43 2019 +0100 @@ -41,7 +41,7 @@ private static final long serialVersionUID = 8000196834066748623L; /** - * Constructs a ZipException with null + * Constructs a {@code ZipException} with {@code null} * as its error detail message. */ public ZipException() { @@ -49,7 +49,7 @@ } /** - * Constructs a ZipException with the specified detail + * Constructs a {@code ZipException} with the specified detail * message. * * @param s the detail message. diff -r a7f16447085e -r 48e480e56aad src/java.base/share/classes/java/util/zip/ZipInputStream.java --- a/src/java.base/share/classes/java/util/zip/ZipInputStream.java Tue Sep 24 10:04:13 2019 +0000 +++ b/src/java.base/share/classes/java/util/zip/ZipInputStream.java Tue Sep 24 09:43:43 2019 +0100 @@ -164,18 +164,18 @@ /** * Reads from the current ZIP entry into an array of bytes. - * If len is not zero, the method + * If {@code len} is not zero, the method * blocks until some input is available; otherwise, no - * bytes are read and 0 is returned. + * bytes are read and {@code 0} is returned. * @param b the buffer into which the data is read - * @param off the start offset in the destination array b + * @param off the start offset in the destination array {@code b} * @param len the maximum number of bytes read * @return the actual number of bytes read, or -1 if the end of the * entry is reached - * @throws NullPointerException if b is null. - * @throws IndexOutOfBoundsException if off is negative, - * len is negative, or len is greater than - * b.length - off + * @throws NullPointerException if {@code b} is {@code null}. + * @throws IndexOutOfBoundsException if {@code off} is negative, + * {@code len} is negative, or {@code len} is greater than + * {@code b.length - off} * @throws ZipException if a ZIP file error has occurred * @throws IOException if an I/O error has occurred */ @@ -327,7 +327,7 @@ } /** - * Creates a new ZipEntry object for the specified + * Creates a new {@code ZipEntry} object for the specified * entry name. * * @param name the ZIP file entry name