Skip to content

Commit

Permalink
Fixed wording as proposed by Alan Bateman: 'The returned reader suppo…
Browse files Browse the repository at this point in the history
…rts the mark and reset ... could move up to become the second paragraph.'
  • Loading branch information
mkarg committed Oct 23, 2024
1 parent c68f9ea commit 97e3144
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/java.base/share/classes/java/io/Reader.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,16 @@ public void close() {
* {@code CharSequence}. The reader is initially open and reading starts at
* the first character in the sequence.
*
* <p> The returned reader supports the {@link #mark mark()} and
* {@link #reset reset()} operations.
*
* <p> The resulting reader is not safe for use by multiple
* concurrent threads. If the reader is to be used by more than one
* thread it should be controlled by appropriate synchronization.
*
* <p> If the sequence changes while the reader is open, e.g. the length
* changes, the behavior is undefined.
*
* <p> The returned reader supports the {@link #mark mark()} and
* {@link #reset reset()} operations.
*
* @param cs {@code CharSequence} providing the character stream.
* @return a {@code Reader} which reads characters from {@code cs}
* @throws NullPointerException if {@code cs} is {@code null}
Expand Down

0 comments on commit 97e3144

Please sign in to comment.