8073213: javadoc of PushbackInputStream methods should specify NullPointerExceptions
authorbpb
Wed, 17 Jul 2019 15:12:47 -0700
changeset 55730 94f8a0b34117
parent 55729 68deaa66130c
child 55731 ee23bd3192f7
8073213: javadoc of PushbackInputStream methods should specify NullPointerExceptions Reviewed-by: lancea, darcy
src/java.base/share/classes/java/io/PushbackInputStream.java
--- a/src/java.base/share/classes/java/io/PushbackInputStream.java	Wed Jul 17 15:12:30 2019 -0700
+++ b/src/java.base/share/classes/java/io/PushbackInputStream.java	Wed Jul 17 15:12:47 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1994, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -217,6 +217,7 @@
      * @param b the byte array to push back.
      * @param off the start offset of the data.
      * @param len the number of bytes to push back.
+     * @exception NullPointerException If <code>b</code> is <code>null</code>.
      * @exception IOException If there is not enough room in the pushback
      *            buffer for the specified number of bytes,
      *            or this input stream has been closed by
@@ -239,6 +240,7 @@
      * value <code>b[1]</code>, and so forth.
      *
      * @param b the byte array to push back
+     * @exception NullPointerException If <code>b</code> is <code>null</code>.
      * @exception IOException If there is not enough room in the pushback
      *            buffer for the specified number of bytes,
      *            or this input stream has been closed by