报告注解条目中的冗余空括号。

使用“移除不必要的括号”快速修复来清理代码。

示例:


  annotation class MyAnnotationA
  annotation class MyAnnotationB(val x: Int)
  annotation class MyAnnotationC(val x: Int = 10) // default value is present

  @MyAnnotationA() // <== parentheses are redundant
  fun testA() {
  }

  @MyAnnotationB() // <== missing argument, parentheses are required
  fun testB() {
  }

  @MyAnnotationC() // <== parentheses are redundant
  fun testC() {
  }