Skip to content

Commit d423a87

Browse files
committed
Use NonNull
1 parent ec132e1 commit d423a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bukkit-utils/src/main/java/net/anweisen/utilities/bukkit/utils/misc/BukkitReflectionUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public static boolean isInWater(@Nonnull Entity entity) {
108108
* @see #fromString(String, Plugin)
109109
*/
110110
@Nullable
111-
public static NamespacedKey fromString(@NotNull String key) {
111+
public static NamespacedKey fromString(@Nonnull String key) {
112112
return fromString(key, null);
113113
}
114114

@@ -139,7 +139,7 @@ public static NamespacedKey fromString(@NotNull String key) {
139139
* @see #fromString(String)
140140
*/
141141
@Nullable
142-
public static NamespacedKey fromString(@NotNull String string, @Nullable Plugin defaultNamespace) {
142+
public static NamespacedKey fromString(@Nonnull String string, @Nullable Plugin defaultNamespace) {
143143
Preconditions.checkArgument(string != null && !string.isEmpty(), "Input string must not be empty or null");
144144

145145
String[] components = string.split(":", 3);

0 commit comments

Comments
 (0)