코드를 정리하려면 '불필요한 소괄호 제거' 빠른 수정을 사용하세요.
예:
annotation class MyAnnotationA
annotation class MyAnnotationB(val x: Int)
annotation class MyAnnotationC(val x: Int = 10) // 디폴트 값이 있습니다
@MyAnnotationA() // <== 소괄호가 불필요합니다
fun testA() {
}
@MyAnnotationB() // <== 인수 누락, 소괄호가 필요합니다
fun testB() {
}
@MyAnnotationC() // <== 소괄호가 불필요합니다
fun testC() {
}