8278587: StringTokenizer(String, String, boolean) documentation bug

Backport-of: 8f5fdd864b
This commit is contained in:
Naoto Sato 2021-12-17 13:48:26 +00:00
parent fffa73c1ef
commit 9cd709060c

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1994, 2020, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -174,9 +174,11 @@ public class StringTokenizer implements Enumeration<Object> {
* <p> * <p>
* If the {@code returnDelims} flag is {@code true}, then * If the {@code returnDelims} flag is {@code true}, then
* the delimiter characters are also returned as tokens. Each * the delimiter characters are also returned as tokens. Each
* delimiter is returned as a string of length one. If the flag is * delimiter is returned as a string consisting of a single
* {@code false}, the delimiter characters are skipped and only * <a href="../lang/Character.html#unicode">Unicode code point</a>
* serve as separators between tokens. * of the delimiter (which may be one or two {@code char}s). If the
* flag is {@code false}, the delimiter characters are skipped
* and only serve as separators between tokens.
* <p> * <p>
* Note that if {@code delim} is {@code null}, this constructor does * Note that if {@code delim} is {@code null}, this constructor does
* not throw an exception. However, trying to invoke other methods on the * not throw an exception. However, trying to invoke other methods on the