i want to know if there is only safety risk or there are also other benefits i get when parameterizing the list.
i get this warning
List is a raw type References to generic type List should be parameterized
when declaring a list for example
List myList;
and if i change to this then there is no warning
List<?> myList;
i understand why there is the warning. i have a code with alot of those warnings and i want to know if it worth the time fixing all those warnings. my question is: if i do not parameterize the list will the code run slower ? i mean will it have to do more checking at run time ?
edit: and if i change to specific type will it then impact performance ?
List<String> myList;