8217393: Clarify Attributes.equals()

Reviewed-by: alanb, darcy, rriggs, martin
This commit is contained in:
Lance Andersen 2019-02-04 14:10:53 -05:00
parent 66c9e770df
commit 9b0b058ee7

View file

@ -265,9 +265,10 @@ public class Attributes implements Map<Object,Object>, Cloneable {
}
/**
* Compares the specified Attributes object with this Map for equality.
* Returns true if the given object is also an instance of Attributes
* and the two Attributes objects represent the same mappings.
* Compares the specified object to the underlying
* {@linkplain Attributes#map map} for equality.
* Returns true if the given object is also a Map
* and the two maps represent the same mappings.
*
* @param o the Object to be compared
* @return true if the specified Object is equal to this Map