8073213: javadoc of PushbackInputStream methods should specify NullPointerExceptions
Reviewed-by: lancea, darcy
This commit is contained in:
parent
2c59ffda98
commit
ba761b4cbd
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -217,6 +217,7 @@ class PushbackInputStream extends FilterInputStream {
|
|||||||
* @param b the byte array to push back.
|
* @param b the byte array to push back.
|
||||||
* @param off the start offset of the data.
|
* @param off the start offset of the data.
|
||||||
* @param len the number of bytes to push back.
|
* @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
|
* @exception IOException If there is not enough room in the pushback
|
||||||
* buffer for the specified number of bytes,
|
* buffer for the specified number of bytes,
|
||||||
* or this input stream has been closed by
|
* or this input stream has been closed by
|
||||||
@ -239,6 +240,7 @@ class PushbackInputStream extends FilterInputStream {
|
|||||||
* value <code>b[1]</code>, and so forth.
|
* value <code>b[1]</code>, and so forth.
|
||||||
*
|
*
|
||||||
* @param b the byte array to push back
|
* @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
|
* @exception IOException If there is not enough room in the pushback
|
||||||
* buffer for the specified number of bytes,
|
* buffer for the specified number of bytes,
|
||||||
* or this input stream has been closed by
|
* or this input stream has been closed by
|
||||||
|
Loading…
x
Reference in New Issue
Block a user