You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This passes the Nullness Checker without a warning.
The only possible call of that method would pass null, the only value of type Void.
It's unlikely that anyone would write this code, but we should forbid explicit usage of @NonNull on Void.
We have an UpperBound annotation, but not a corresponding LowerBound annotation. Void should have a lower bound of @Nullable to forbid uses with @NonNull.
It would also be nicer to move the default from Nullable to Void, to make it more directly discoverable.
The text was updated successfully, but these errors were encountered:
@Nullable
is the default forVoid
.However, nothing forbids someone from writing:
This passes the Nullness Checker without a warning.
The only possible call of that method would pass
null
, the only value of typeVoid
.It's unlikely that anyone would write this code, but we should forbid explicit usage of
@NonNull
onVoid
.We have an
UpperBound
annotation, but not a correspondingLowerBound
annotation.Void
should have a lower bound of@Nullable
to forbid uses with@NonNull
.It would also be nicer to move the default from
Nullable
toVoid
, to make it more directly discoverable.The text was updated successfully, but these errors were encountered: