Fix tag key generator output inconsistencies (#11218)
* Fix tag key generator output inconsistencies * use NonNull instead of NotNull for generated api --------- Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
This commit is contained in:
parent
70dfa467e7
commit
1cecc24cad
22 changed files with 1166 additions and 1186 deletions
|
@ -340,7 +340,7 @@ index 0000000000000000000000000000000000000000..18f9463ae23ba2d9c65ffb7531a87c92
|
|||
+}
|
||||
diff --git a/src/main/java/io/papermc/paper/registry/data/util/Checks.java b/src/main/java/io/papermc/paper/registry/data/util/Checks.java
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..a66cebe2b918a22b84e346127ffb671621050e5f
|
||||
index 0000000000000000000000000000000000000000..3241a94731fe8163876614efdcf30f8b551535af
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/io/papermc/paper/registry/data/util/Checks.java
|
||||
@@ -0,0 +1,48 @@
|
||||
|
@ -370,7 +370,7 @@ index 0000000000000000000000000000000000000000..a66cebe2b918a22b84e346127ffb6716
|
|||
+
|
||||
+ public static <T> T asArgument(final @Nullable T value, final String field) {
|
||||
+ if (value == null) {
|
||||
+ throw new IllegalArgumentException("argument " + value + " cannot be null");
|
||||
+ throw new IllegalArgumentException("argument " + field + " cannot be null");
|
||||
+ }
|
||||
+ return value;
|
||||
+ }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue