new
<>
示例:
List<String> list = new ArrayList<String>(); // 报告数组列表类型实参
在应用快速修复后:
List<String> list = new ArrayList<>();
仅当项目或模块的语言级别为 7 或更高时,此检查才会报告。