Implement inspection to remove @ from annotation argument #KT-9228 Fixed
(cherry picked from commit 543c6bc)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c80e094967
commit
113ab7640e
+6
@@ -0,0 +1,6 @@
|
||||
annotation class X(val value: Y)
|
||||
annotation class Y()
|
||||
|
||||
@X(Y())
|
||||
fun foo() {}
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
annotation class X(val value: Y)
|
||||
annotation class Y()
|
||||
|
||||
@X(@Y())
|
||||
fun foo() {}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention removes unnecessary '@' from annotations which are annotation arguments themselves.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user