Skip to content

Commit

Permalink
8316207: Fix typos in java.io.StreamTokenizer
Browse files Browse the repository at this point in the history
Reviewed-by: naoto
  • Loading branch information
pavelrappo committed Sep 15, 2023
1 parent dc5ca1d commit 149acd1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/java.base/share/classes/java/io/StreamTokenizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public class StreamTokenizer {
* has been reached.
* </ul>
* <p>
* The initial value of this field is -4.
* The initial value of this field is {@value TT_NOTHING}.
*
* @see java.io.StreamTokenizer#eolIsSignificant(boolean)
* @see java.io.StreamTokenizer#nextToken()
Expand Down Expand Up @@ -344,7 +344,7 @@ public void ordinaryChar(int ch) {
}

/**
* Specified that the character argument starts a single-line
* Specifies that the character argument starts a single-line
* comment. All characters from the comment character to the end of
* the line are ignored by this stream tokenizer.
*
Expand Down Expand Up @@ -478,7 +478,7 @@ public void slashSlashComments(boolean flag) {
* If the flag argument is {@code true}, then the value in the
* {@code sval} field is lowercased whenever a word token is
* returned (the {@code ttype} field has the
* value {@code TT_WORD} by the {@code nextToken} method
* value {@code TT_WORD}) by the {@code nextToken} method
* of this tokenizer.
* <p>
* If the flag argument is {@code false}, then the
Expand Down Expand Up @@ -755,7 +755,7 @@ public void pushBack() {
}

/**
* Return the current line number.
* Returns the current line number.
*
* @return the current line number of this stream tokenizer.
*/
Expand Down

0 comments on commit 149acd1

Please sign in to comment.