by corytheboyd · 1y ago · 0 comments
Reality does indeed feel exactly like what you mentioned with C#, though. The annotation is going to be missing where it’s needed most unless something forces the whole project to use it.
Even better, apply at the package level via `package-info.java` (unfortunately sub-packages need to be individually marked as well)
@NullMarked
package com.foo;
import org.jspecify.annotations.NullMarked;