Skip to content

Commit

Permalink
Fix #11507 getAttribute javadoc (#11843)
Browse files Browse the repository at this point in the history
Fix #11507 getAttribute javadoc.
As some stage we should consider @nullable or @NotNull annotations...
  • Loading branch information
gregw authored May 27, 2024
1 parent e782f91 commit 7e36f3c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,28 @@ public interface Attributes
/**
* Remove an attribute
* @param name the attribute to remove
* @return the value of the attribute if removed, else null
* @return the value of the attribute if removed, else {@code null}
*/
Object removeAttribute(String name);

/**
* Set an attribute
* @param name the attribute to set
* @param attribute the value to set. A null value is equivalent to removing the attribute.
* @return the previous value of the attribute if set, else null
* @return the previous value of the attribute if set, else {@code null}
*/
Object setAttribute(String name, Object attribute);

/**
* Get an attribute
* @param name the attribute to get
* @return the value of the attribute
* @return the value of the attribute, or {@code null} if no such attribute exists
*/
Object getAttribute(String name);

/**
* Get the immutable set of attribute names.
* @return Set of attribute names
* @return Set of attribute names, or an empty set if there are no attributes.
*/
Set<String> getAttributeNameSet();

Expand Down

0 comments on commit 7e36f3c

Please sign in to comment.