Why does Java complain about use of generics in map but not list?
I need to generically process a map containing a list, but can’t get by the compiler warning. It doesn’t make sense why I can generically process the list, but not the map. From the below code, why does the compiler allow the ‘processList’ method call, but not the call to ‘processMap’? It doesn’t seem to… Read More Why does Java complain about use of generics in map but not list?