From ed447bec24640e51573a9881f575bcce0b46a76b Mon Sep 17 00:00:00 2001 From: xDec0de_ Date: Sat, 2 Nov 2024 22:15:33 +0100 Subject: [PATCH] HexColorPattern: Fix annotation --- .../mcutils/java/strings/pattern/color/HexColorPattern.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/main/java/net/codersky/mcutils/java/strings/pattern/color/HexColorPattern.java b/shared/src/main/java/net/codersky/mcutils/java/strings/pattern/color/HexColorPattern.java index 4e4be49..43292e4 100644 --- a/shared/src/main/java/net/codersky/mcutils/java/strings/pattern/color/HexColorPattern.java +++ b/shared/src/main/java/net/codersky/mcutils/java/strings/pattern/color/HexColorPattern.java @@ -23,7 +23,7 @@ public class HexColorPattern implements ColorPattern { @NotNull - public String applyColor(@Nullable final String string, boolean simple) { + public String applyColor(@NotNull final String string, boolean simple) { final int len = string.length(); if (len < (simple ? 5 : 8) || string.indexOf('#') < 0) return string;