Skip to content

Commit

Permalink
KeyPattern is not a TYPE_USE annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
kashike committed Sep 29, 2024
1 parent 8116441 commit 287bc90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions key/src/main/java/net/kyori/adventure/key/Key.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,18 @@ static boolean allowedInValue(final char character) {
* @return the namespace
* @since 4.0.0
*/
@KeyPattern.Namespace
@Override
@NotNull @KeyPattern.Namespace String namespace();
@NotNull String namespace();

/**
* Gets the value.
*
* @return the value
* @since 4.0.0
*/
@NotNull @KeyPattern.Value String value();
@KeyPattern.Value
@NotNull String value();

/**
* Returns the string representation of this key.
Expand Down

0 comments on commit 287bc90

Please sign in to comment.