8317471: ListFormat::parseObject() spec can be improved on parsePosition valid values

Reviewed-by: iris, lancea, joehw, mli
This commit is contained in:
Naoto Sato 2023-10-09 16:29:40 +00:00
parent a07a4a3a59
commit 1f06325142

View file

@ -416,6 +416,8 @@ public final class ListFormat extends Format {
* @return A list of string parsed from the {@code source}. * @return A list of string parsed from the {@code source}.
* In case of error, returns null. * In case of error, returns null.
* @throws NullPointerException if {@code source} or {@code parsePos} is null. * @throws NullPointerException if {@code source} or {@code parsePos} is null.
* @throws IndexOutOfBoundsException if the starting index given by
* {@code parsePos} is outside {@code source}.
*/ */
@Override @Override
public Object parseObject(String source, ParsePosition parsePos) { public Object parseObject(String source, ParsePosition parsePos) {