报告可以替换为数组初始值设定项的常量新数组表达式。 数组初始值设定项可以省略类型,因为它已在赋值的左侧指定。

示例:


  int[] foo = new int[] {42};

在应用快速修复后:


  int[] foo = {42};