diff options
| author | Brian Burkhalter <bpb@openjdk.org> | 2021-02-19 17:21:11 +0000 |
|---|---|---|
| committer | Brian Burkhalter <bpb@openjdk.org> | 2021-02-19 17:21:11 +0000 |
| commit | 7ffa1481c2a9d41bd06db484bd01b3e48d55810f (patch) | |
| tree | 198e42836d4b26a9f6ff6a48add4496f9ae7541e /src/java.base/share/classes/java/io/PushbackReader.java | |
| parent | 8a1c712c2ed54fbd3eea14a6ee6fff24e9275812 (diff) | |
| download | openjdk-7ffa1481c2a9d41bd06db484bd01b3e48d55810f.tar.gz openjdk-7ffa1481c2a9d41bd06db484bd01b3e48d55810f.zip | |
8247918: Clarify Reader.skip behavior for end of stream
Reviewed-by: rriggs, naoto
Diffstat (limited to 'src/java.base/share/classes/java/io/PushbackReader.java')
| -rw-r--r-- | src/java.base/share/classes/java/io/PushbackReader.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/java.base/share/classes/java/io/PushbackReader.java b/src/java.base/share/classes/java/io/PushbackReader.java index cd5fea7a7b9..c35984164be 100644 --- a/src/java.base/share/classes/java/io/PushbackReader.java +++ b/src/java.base/share/classes/java/io/PushbackReader.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 2021, 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 @@ -254,15 +254,7 @@ public class PushbackReader extends FilterReader { } /** - * Skips characters. This method will block until some characters are - * available, an I/O error occurs, or the end of the stream is reached. - * - * @param n The number of characters to skip - * - * @return The number of characters actually skipped - * - * @throws IllegalArgumentException If {@code n} is negative. - * @throws IOException If an I/O error occurs + * {@inheritDoc} */ public long skip(long n) throws IOException { if (n < 0L) |
