8256183: InputStream.skipNBytes is missing @since 12

Reviewed-by: dfuchs, lancea, bpb
This commit is contained in:
Conor Cleary 2020-11-20 20:11:48 +00:00 committed by Lance Andersen
parent b21b96df21
commit be6c89366f

View file

@ -592,6 +592,8 @@ public abstract class InputStream implements Closeable {
* @throws IOException if the stream cannot be positioned properly or
* if an I/O error occurs.
* @see java.io.InputStream#skip(long)
*
* @since 12
*/
public void skipNBytes(long n) throws IOException {
if (n > 0) {