+1

Mandy

On 6/18/20 4:16 PM, Jonathan Gibbons wrote:
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
      */


Reply via email to