@Documented @Retention(value=CLASS) @Target(value={PACKAGE,TYPE}) @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public @interface NonNullByDefault
NonNull. The default behavior can be
overwritten using Nullable.
While @ParametersAreNonnullByDefault
means "the method parameters in that element are nonnull by default",
@NonNullByDefault handles parameters and also return values and
fields.
@NonNullByDefault is similar to @DefaultAnnotation(NonNull.class),
but can be used together with Eclipse settings.
Copyright © 2024. All rights reserved.