You can still use the asList()
method of the Arrays class if you know all the columns you'll add to the table, if you want an unmodifiable list you can also use the of()
method of the List class.
In any case, both solve the warning and it´s correct to use.