I\'m having some trouble navigating Java\'s rule for inferring generic type parameters. Consider the following class, which has an optional list parameter:
im
You want to use:
Collections.emptyList();
If you look at the source for what emptyList does you see that it actually just does a
return (List)EMPTY_LIST;