NOVA-Team / NOVA-Monorepo

The core API of the NOVA voxel game modding system
https://nova-team.github.io
GNU Lesser General Public License v3.0
66 stars 23 forks source link

Use the JSR 305 Annotations to specify what can and what can’t be null #246

Open ExE-Boss opened 7 years ago

ExE-Boss commented 7 years ago

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.

dependencies {
    compile group: "com.google.code.findbugs", name: "jsr305", version: "1.3.9"
}
SoniEx2 commented 7 years ago

I'd love to help with this.