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

示例:

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

在应用快速修复后:

  int[] foo = {42};