mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8317265: ListFormat::format specification could be made clearer regarding handling IllegalArgumentException.
Reviewed-by: joehw
This commit is contained in:
parent
cfabcbf858
commit
1809b8cdd6
1 changed files with 2 additions and 2 deletions
|
@ -353,8 +353,8 @@ public final class ListFormat extends Format {
|
|||
* @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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue