Add doc for AttributesBuider accident. (#3265)

This commit is contained in:
Anuraag Agrawal 2021-05-31 00:22:12 +09:00 committed by GitHub
parent 782e38fe6e
commit 1bfc7871bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -22,7 +22,15 @@ public interface AttributesBuilder {
/** Create the {@link Attributes} from this. */
Attributes build();
/** Puts a {@link AttributeKey} with associated value into this. */
/**
* Puts a {@link AttributeKey} with associated value into this.
*
* <p>The type parameter is unused.
*/
// The type parameter was added unintentionally and unfortunately it is an API break for
// implementations of this interface to remove it. It doesn't affect users of the interface in
// any way, and has almost no effect on implementations, so we leave it until a future major
// version.
<T> AttributesBuilder put(AttributeKey<Long> key, int value);
/** Puts a {@link AttributeKey} with associated value into this. */