0

Possible Duplicate:
What is a raw type and why shouldn’t we use it?

Why the following line of code:

private static List list = new ArrayList<String>();

... generates the following warning:

List is a raw type. References to generic type List should be parameterized.

Community
  • 1
  • 1
Emanuil Rusev
  • 33,269
  • 52
  • 129
  • 197

0 Answers0