Package net.minecraft.util.annotation
Annotation Interface FieldsAreNonnullByDefault
@NotNull
@TypeQualifierDefault(FIELD)
@Retention(RUNTIME)
public @interface FieldsAreNonnullByDefault
Specifies that all fields in the annotated package/class are nonnull
unless nullability is specified with a separate annotation.
While this annotation is meant to be a package/class annotation, it can be applied to anything as it does not restrict its targets.
A similar FieldsAreNonnullByDefault2
exists; they don't coexist
on any package info class.
- See Also:
ClientFieldsAreNonnullByDefault
,FieldsAreNonnullByDefault2
- Mappings:
Namespace Name official w
intermediary net/minecraft/class_6319
named net/minecraft/util/annotation/FieldsAreNonnullByDefault