mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8318487: Specification of the ListFormat.equals() method can be improved
Reviewed-by: joehw, rriggs, lancea, iris
This commit is contained in:
parent
cf4ede0e54
commit
a5208870e1
1 changed files with 6 additions and 5 deletions
|
@ -500,11 +500,12 @@ public final class ListFormat extends Format {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if this {@code ListFormat} is equal to another {@code ListFormat}.
|
* Compares the specified object with this {@code ListFormat} for equality.
|
||||||
* The comparison is based on the {@code Locale} and formatting patterns, given or
|
* Returns {@code true} if the specified object is also a {@code ListFormat}, and
|
||||||
* generated with {@code Locale}, {@code Type}, and {@code Style}.
|
* {@code locale} and {@code patterns}, returned from {@link #getLocale()}
|
||||||
* @param obj the object to check, {@code null} returns {@code false}
|
* and {@link #getPatterns()} respectively, are equal.
|
||||||
* @return {@code true} if this is equals to the other {@code ListFormat}
|
* @param obj the object to be compared for equality.
|
||||||
|
* @return {@code true} if the specified object is equal to this {@code ListFormat}
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object obj) {
|
public boolean equals(Object obj) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue