Skip to content

Commit

Permalink
8317265: ListFormat::format specification could be made clearer regar…
Browse files Browse the repository at this point in the history
…ding handling IllegalArgumentException.

Reviewed-by: joehw
  • Loading branch information
naotoj committed Oct 3, 2023
1 parent cfabcbf commit 1809b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.base/share/classes/java/text/ListFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ public String format(List<String> input) {
* @return the string buffer passed in as {@code toAppendTo},
* with formatted text appended
* @throws NullPointerException if {@code obj} or {@code toAppendTo} is null
* @throws IllegalArgumentException if the given object cannot
* be formatted
* @throws IllegalArgumentException if {@code obj} is neither a {@code List}
* nor an array of {@code Object}s, or its length is zero.
*/
@Override
public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {
Expand Down

1 comment on commit 1809b8c

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.