The following code:
((tempVar instanceof ArrayList<Foo>) ? tempVar : null);
causes:
Cannot perform
instanceofcheck against parameterized typeArrayList<Foo>. Use the formArrayList<?>instead since further generic type information will be erased at runtime
Can someone explain me what is meant by "further generic type information will be erased at runtime" and how to fix this?