mirror of https://github.com/FabricMC/yarn.git
Add nonnull annotations (#2244)
* Add nonnull annotations * Move to util.annotation * Add docs
This commit is contained in:
parent
56d442309e
commit
187b0bc81a
|
@ -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.
|
|
@ -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.
|
Loading…
Reference in New Issue