Review JSpecify nullness on type user array elements and lists
Author: filiphrCreated Apr 13, 2026Updated Aug 20, 2026
LabelsenhancementJSpecify
Review how something like:
@NullMarked
class JSpecifyArrays {
public String @Nullable[] getNullableArrayOfNonNullStrings() { }
public @Nullable String[] getNonNullArrayOfNullableStrings() { }
public String[] getNonNullArrayOfNonNullStrings() { }
}works. This is from https://github.com/mapstruct/mapstruct/pull/4033#issuecomment-4239085338
Source: mapstruct/mapstruct