Instead of annotating every parameter and return value with @NonNull or @Nullable, JSpecify introduces annotations that allow developers to define default behaviors, requiring only non-default cases to be explicitly marked. By setting the default to @NonNull, developers ensure that any nullable values are clearly and explicitly declared.
Instead of annotating every parameter and return value with
@NonNullor@Nullable, JSpecify introduces annotations that allow developers to define default behaviors, requiring only non-default cases to be explicitly marked. By setting the default to@NonNull, developers ensure that any nullable values are clearly and explicitly declared.