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
Nullness checker incorrectly assumes that the result of table.get() method is Cell<@Nullable ?>, while in fact it is Cell<?>.
There are currently two ways to overcome this problem:
add @SuppressWarnings annotation to silence the nullness checker,
declare local variable as Cell<@Nullable ?> cell, which should not be necessary.
The problem is likely caused by the fact that Table extends Array, where Table has non-null bound, but Array has nullable bounds, so nullness checker confuses the return type of get() method.
The text was updated successfully, but these errors were encountered:
This valid code:
produces this error:
Nullness checker incorrectly assumes that the result of
table.get()
method isCell<@Nullable ?>
, while in fact it isCell<?>
.There are currently two ways to overcome this problem:
@SuppressWarnings
annotation to silence the nullness checker,Cell<@Nullable ?> cell
, which should not be necessary.The problem is likely caused by the fact that
Table
extendsArray
, whereTable
has non-null bound, butArray
has nullable bounds, so nullness checker confuses the return type ofget()
method.The text was updated successfully, but these errors were encountered: