8029489: StringJoiner spec for setEmptyValue() and length() is malformatted

Reviewed-by: darcy, lancea, mduigou
This commit is contained in:
Stuart Marks 2013-12-03 18:19:52 -08:00
parent 591834e28d
commit 170b3229bc

View File

@ -131,7 +131,7 @@ public final class StringJoiner {
/** /**
* Sets the sequence of characters to be used when determining the string * Sets the sequence of characters to be used when determining the string
* representation of this {@code StringJoiner} and no elements have been * representation of this {@code StringJoiner} and no elements have been
* added yet, i.e. when it is empty. A copy of the {@code emptyValue} * added yet, that is, when it is empty. A copy of the {@code emptyValue}
* parameter is made for this purpose. Note that once an add method has been * parameter is made for this purpose. Note that once an add method has been
* called, the {@code StringJoiner} is no longer considered empty, even if * called, the {@code StringJoiner} is no longer considered empty, even if
* the element(s) added correspond to the empty {@code String}. * the element(s) added correspond to the empty {@code String}.
@ -228,8 +228,8 @@ public final class StringJoiner {
} }
/** /**
* The length of the {@code StringJoiner} value, i.e. the length of * Returns the length of the {@code String} representation
* {@code String} representation of the {@code StringJoiner}. Note that if * of this {@code StringJoiner}. Note that if
* no add methods have been called, then the length of the {@code String} * no add methods have been called, then the length of the {@code String}
* representation (either {@code prefix + suffix} or {@code emptyValue}) * representation (either {@code prefix + suffix} or {@code emptyValue})
* will be returned. The value should be equivalent to * will be returned. The value should be equivalent to