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
  • 34,563
  • 55
  • 137
  • 201

0 Answers0