The JSR 305 Annotations library provides multiple annotations in the javax.annotation package, including @Nullable and @Nonnull which specify what can and can’t be null respectively.
The library also provides other annotations, such as @Immutable to specify immutable objects.
It’s also used by Minecraft Forge.
The JSR 305 Annotations library provides multiple annotations in the
javax.annotation
package, including@Nullable
and@Nonnull
which specify what can and can’t be null respectively.The library also provides other annotations, such as
@Immutable
to specify immutable objects. It’s also used by Minecraft Forge.