报告具有空主体的类和对象的声明。

使用“移除冗余空白类主体”快速修复来清理代码。

示例:


  class EmptyA() {} // <== empty body

  class EmptyB {
      companion object {} // <== empty body
  }

  fun emptyC() {
     object {} // <== anonymous object, it's ok (not reported)
  }

在应用快速修复后:


  class EmptyA()

  class EmptyB {
      companion object
  }

  fun emptyC() {
     object {}
  }