When instantiating ArrayLists I am used to seeing code like this
ArrayList arr = new ArrayList();
or
I've just tried:
ArrayList arr = new ArrayList();
And got the same warning (not an error!). Looks like the compiler ignores1 the generics after the new keyword and before the ArrayList. It's just like writing:
ArrayList arr = new ArrayList();
1 I'm not sure if it really "ignores" that, I'll be glad if someone confirms/correct me