Annotation Interface FieldsAreNonnullByDefault2


@NotNull @TypeQualifierDefault(FIELD) @Retention(RUNTIME) public @interface FieldsAreNonnullByDefault2
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.

This is pretty much identical to FieldsAreNonnullByDefault that they are used on different package info files and never coexist.

See Also:
ClientFieldsAreNonnullByDefault, FieldsAreNonnullByDefault
Mappings:
Namespace Name
official b
intermediary net/minecraft/class_6037
named net/minecraft/util/annotation/FieldsAreNonnullByDefault2