If I add columns to a JavaFX TableView:
tableView.getColumns().addAll( col1, col2, col3 );
I get this warning:
Type safety: A generic array of TableColumn< T, ? > is created for a varargs parameter
If I manually put the vargs into a list, I don't get the warning:
tableView.getColumns().addAll( Arrays.asList( col1, col2, col3 ) );
Is this a good way to deal with this warning, or is there a better way? It doesn't feel right to get a warning for just using a varargs method.