Replace the type specification in this constructor call with the diamond operator ('<>')
既然所述操作员已经存在,那么当 Eclipse 要求时,它是什么意思?
然后我将光标放在蓝色下划线的内容上,然后按F2了解更多信息,我收到以下消息(Replace the type specification in this constructor call with the diamond operator ('<>')
):
如果我Object
从内部删除<>
,Eclipse 仍然不高兴:
编辑
我们确保
java.util.List
被进口了- 更改已保存
Project -> Clean...
命令已应用
蓝色警告仍然不会消失。