--- a/src/java.base/share/classes/java/io/PipedWriter.java Tue Sep 24 10:04:13 2019 +0000
+++ b/src/java.base/share/classes/java/io/PipedWriter.java Tue Sep 24 09:43:43 2019 +0100
@@ -50,7 +50,7 @@
/**
* Creates a piped writer connected to the specified piped
* reader. Data characters written to this stream will then be
- * available as input from <code>snk</code>.
+ * available as input from {@code snk}.
*
* @param snk The piped reader to connect to.
* @throws IOException if an I/O error occurs.
@@ -73,10 +73,10 @@
/**
* Connects this piped writer to a receiver. If this object
* is already connected to some other piped reader, an
- * <code>IOException</code> is thrown.
+ * {@code IOException} is thrown.
* <p>
- * If <code>snk</code> is an unconnected piped reader and
- * <code>src</code> is an unconnected piped writer, they may
+ * If {@code snk} is an unconnected piped reader and
+ * {@code src} is an unconnected piped writer, they may
* be connected by either the call:
* <blockquote><pre>
* src.connect(snk)</pre></blockquote>
@@ -104,16 +104,16 @@
}
/**
- * Writes the specified <code>char</code> to the piped output stream.
+ * Writes the specified {@code char} to the piped output stream.
* If a thread was reading data characters from the connected piped input
* stream, but the thread is no longer alive, then an
- * <code>IOException</code> is thrown.
+ * {@code IOException} is thrown.
* <p>
- * Implements the <code>write</code> method of <code>Writer</code>.
+ * Implements the {@code write} method of {@code Writer}.
*
- * @param c the <code>char</code> to be written.
+ * @param c the {@code char} to be written.
* @throw IOException if the pipe is
- * <a href=PipedOutputStream.html#BROKEN> <code>broken</code></a>,
+ * <a href=PipedOutputStream.html#BROKEN> {@code broken}</a>,
* {@link #connect(java.io.PipedReader) unconnected}, closed
* or an I/O error occurs.
*/
@@ -143,7 +143,7 @@
* of the given array
*
* @throws IOException if the pipe is
- * <a href=PipedOutputStream.html#BROKEN><code>broken</code></a>,
+ * <a href=PipedOutputStream.html#BROKEN>{@code broken}</a>,
* {@link #connect(java.io.PipedReader) unconnected}, closed
* or an I/O error occurs.
*/