aboutsummaryrefslogtreecommitdiff
path: root/src/java.base/share/classes/java/util/StringTokenizer.java
diff options
context:
space:
mode:
authorJulia Boes <jboes@openjdk.org>2019-09-20 11:07:52 +0100
committerJulia Boes <jboes@openjdk.org>2019-09-20 11:07:52 +0100
commitb15b322cf396287b5ae7b8e2a19205791d902fad (patch)
tree91c03d816c53f2f39a897978fb3bcc793173ef54 /src/java.base/share/classes/java/util/StringTokenizer.java
parent2fc6c6459d4b0c7538787987ee0518b0133e790d (diff)
downloadopenjdk-b15b322cf396287b5ae7b8e2a19205791d902fad.tar.gz
openjdk-b15b322cf396287b5ae7b8e2a19205791d902fad.zip
8230648: Replace @exception tag with @throws in java.base
Minor coding style update of javadoc tag in any file in java.base Reviewed-by: prappo, lancea
Diffstat (limited to 'src/java.base/share/classes/java/util/StringTokenizer.java')
-rw-r--r--src/java.base/share/classes/java/util/StringTokenizer.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/java.base/share/classes/java/util/StringTokenizer.java b/src/java.base/share/classes/java/util/StringTokenizer.java
index 5d55ae01e33..9e4a89c1bf0 100644
--- a/src/java.base/share/classes/java/util/StringTokenizer.java
+++ b/src/java.base/share/classes/java/util/StringTokenizer.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2004, 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.
*
* This code is free software; you can redistribute it and/or modify it
@@ -189,7 +189,7 @@ class StringTokenizer implements Enumeration<Object> {
* @param delim the delimiters.
* @param returnDelims flag indicating whether to return the delimiters
* as tokens.
- * @exception NullPointerException if str is {@code null}
+ * @throws NullPointerException if str is {@code null}
*/
public StringTokenizer(String str, String delim, boolean returnDelims) {
currentPosition = 0;
@@ -215,7 +215,7 @@ class StringTokenizer implements Enumeration<Object> {
*
* @param str a string to be parsed.
* @param delim the delimiters.
- * @exception NullPointerException if str is {@code null}
+ * @throws NullPointerException if str is {@code null}
*/
public StringTokenizer(String str, String delim) {
this(str, delim, false);
@@ -230,7 +230,7 @@ class StringTokenizer implements Enumeration<Object> {
* not be treated as tokens.
*
* @param str a string to be parsed.
- * @exception NullPointerException if str is {@code null}
+ * @throws NullPointerException if str is {@code null}
*/
public StringTokenizer(String str) {
this(str, " \t\n\r\f", false);
@@ -328,7 +328,7 @@ class StringTokenizer implements Enumeration<Object> {
* Returns the next token from this string tokenizer.
*
* @return the next token from this string tokenizer.
- * @exception NoSuchElementException if there are no more tokens in this
+ * @throws NoSuchElementException if there are no more tokens in this
* tokenizer's string.
*/
public String nextToken() {
@@ -363,9 +363,9 @@ class StringTokenizer implements Enumeration<Object> {
*
* @param delim the new delimiters.
* @return the next token, after switching to the new delimiter set.
- * @exception NoSuchElementException if there are no more tokens in this
+ * @throws NoSuchElementException if there are no more tokens in this
* tokenizer's string.
- * @exception NullPointerException if delim is {@code null}
+ * @throws NullPointerException if delim is {@code null}
*/
public String nextToken(String delim) {
delimiters = delim;
@@ -398,7 +398,7 @@ class StringTokenizer implements Enumeration<Object> {
* {@code Enumeration} interface.
*
* @return the next token in the string.
- * @exception NoSuchElementException if there are no more tokens in this
+ * @throws NoSuchElementException if there are no more tokens in this
* tokenizer's string.
* @see java.util.Enumeration
* @see java.util.StringTokenizer#nextToken()