注释类型 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.

    Mappings:
    Namespace Name
    official w
    intermediary net/minecraft/class_6319
    named net/minecraft/util/annotation/FieldsAreNonnullByDefault