Try adding @Nonnull (javax.annotation.Nonnull) to the toArray method.
The warning disappeared for me when I added this annotation. I think the warning message is incorrect which says that @NotNull is missing.
Try adding @Nonnull (javax.annotation.Nonnull) to the toArray method.
The warning disappeared for me when I added this annotation. I think the warning message is incorrect which says that @NotNull is missing.