From 287bc90d926b9fea68a3b8d3ac7205d29c2ebde3 Mon Sep 17 00:00:00 2001 From: Riley Park Date: Sat, 28 Sep 2024 17:32:21 -0700 Subject: [PATCH] KeyPattern is not a TYPE_USE annotation --- key/src/main/java/net/kyori/adventure/key/Key.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/key/src/main/java/net/kyori/adventure/key/Key.java b/key/src/main/java/net/kyori/adventure/key/Key.java index ef7d93775..33b4341b9 100644 --- a/key/src/main/java/net/kyori/adventure/key/Key.java +++ b/key/src/main/java/net/kyori/adventure/key/Key.java @@ -248,8 +248,9 @@ 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. @@ -257,7 +258,8 @@ static boolean allowedInValue(final char character) { * @return the value * @since 4.0.0 */ - @NotNull @KeyPattern.Value String value(); + @KeyPattern.Value + @NotNull String value(); /** * Returns the string representation of this key.