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

后端 未结 4 1013
刺人心
刺人心 2020-12-09 11:04

Below is my syntax

List synchronizedpubliesdList = Collections.synchronizedList(publiesdList);

I am getting a syntax error of:

4条回答
  •  死守一世寂寞
    2020-12-09 11:50

    I've had the same warnings in Eclipse and just click on the warning sign and get the option of adding a type argument to the Hash, List, Array or what have you. Big list of discussion here What is a raw type and why shouldn't we use it?

提交回复
热议问题