Add "Remove annotation" quickfix for empty @Throws
This commit is contained in:
Vendored
+1
@@ -2,6 +2,7 @@
|
||||
// ERROR: @Throws must have non-empty class list
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
// ACTION: Remove annotation
|
||||
|
||||
// No compilation error => no quickfix.
|
||||
<caret>@Throws()
|
||||
|
||||
Vendored
+1
@@ -2,6 +2,7 @@
|
||||
// ERROR: @Throws must have non-empty class list
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
// ACTION: Remove annotation
|
||||
|
||||
// No compilation error => no quickfix.
|
||||
<caret>@Throws
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package kotlin
|
||||
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR)
|
||||
@Retention(AnnotationRetention.SOURCE)
|
||||
public annotation class Throws(vararg val exceptionClasses: KClass<out Throwable>)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Remove annotation" "true"
|
||||
|
||||
<caret>@Throws
|
||||
fun removeEmptyThrows() {}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// "Remove annotation" "true"
|
||||
|
||||
fun removeEmptyThrows() {}
|
||||
Reference in New Issue
Block a user