RFR: [15, docs] JDK-8247896, Invalid (@throw) tags in 2 java.io classes
Jonathan Gibbons
jonathan.gibbons at oracle.com
Thu Jun 18 23:16:34 UTC 2020
Please review a trivial fix for a couple of misnamed tags in 2 classes in
the java.io package. In both cases, @throw should be @throws
-- Jon
JBS: https://bugs.openjdk.java.net/browse/JDK-8247896
Patch inline:
diff -r d66e8770295e src/java.base/share/classes/java/io/PipedWriter.java
--- a/src/java.base/share/classes/java/io/PipedWriter.java Thu Jun 18
15:54:26 2020 -0700
+++ b/src/java.base/share/classes/java/io/PipedWriter.java Thu Jun 18
16:11:28 2020 -0700
@@ -112,7 +112,7 @@
* Implements the {@code write} method of {@code Writer}.
*
* @param c the {@code char} to be written.
- * @throw IOException if the pipe is
+ * @throws IOException if the pipe is
* <a href=PipedOutputStream.html#BROKEN> {@code broken}</a>,
* {@link #connect(java.io.PipedReader) unconnected}, closed
* or an I/O error occurs.
diff -r d66e8770295e
src/java.base/share/classes/java/io/SequenceInputStream.java
--- a/src/java.base/share/classes/java/io/SequenceInputStream.java Thu
Jun 18 15:54:26 2020 -0700
+++ b/src/java.base/share/classes/java/io/SequenceInputStream.java Thu
Jun 18 16:11:28 2020 -0700
@@ -121,7 +121,7 @@
* skipped over) from the current underlying input stream
* without blocking or {@code 0} if this input stream
* has been closed by invoking its {@link #close()} method
- * @throw IOException if an I/O error occurs.
+ * @throws IOException if an I/O error occurs.
*
* @since 1.1
*/
More information about the core-libs-dev
mailing list