报告可以替换为 Kotlin stdlib 的 Java Collections static 方法调用。

示例:


  import java.util.Collections

  fun test() {
      val mutableList = mutableListOf(1, 2)
      Collections.fill(mutableList, 3)
  }

该快速修复会将 Java Collections static 方法调用替换为相应的 Kotlin stdlib 方法调用:


  import java.util.Collections

  fun test() {
      val mutableList = mutableListOf(1, 2)
      mutableList.fill(3)
  }