Add nonnull annotations (#2244)

* Add nonnull annotations

* Move to util.annotation

* Add docs
This commit is contained in:
Juuxel 2021-04-01 21:45:28 +03:00 committed by GitHub
parent 56d442309e
commit 187b0bc81a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,6 @@
CLASS net/minecraft/class_6319 net/minecraft/util/annotation/FieldsAreNonnullByDefault
COMMENT Specifies that all fields in the annotated package/class are nonnull
COMMENT unless nullability is specified with a separate annotation.
COMMENT
COMMENT <p>While this annotation is meant to be a package/class annotation, it can
COMMENT be applied to anything as it does not restrict its targets.

View File

@ -0,0 +1,6 @@
CLASS net/minecraft/class_6328 net/minecraft/util/annotation/MethodsReturnNonnullByDefault
COMMENT Specifies that all methods in the annotated package/class return nonnull
COMMENT values unless nullability is specified with a separate annotation.
COMMENT
COMMENT <p>While this annotation is meant to be a package/class annotation, it can
COMMENT be applied to anything as it does not restrict its targets.