07d35d305e
Fix a problem where deleting last import directive via "optimize imports" could lead to incorrect psi structure resulting in CCE, see EA-64291 New imports are inserted at the head (after package directive if present) of the file (before any comments) if no imports were present Add test for inserting import to file where a first statement is a comment Drop code dealing with non-existing import list in ImportInsertHelperImpl AbstractQuickFixTest: check for unexpected actions before changes to the file are made as it relies on the first line having specific format
17 lines
507 B
Plaintext
Vendored
17 lines
507 B
Plaintext
Vendored
import kotlin.reflect.KClass
|
|
|
|
// "Replace Class<T> with KClass<T> in whole annotation" "true"
|
|
// WITH_RUNTIME
|
|
|
|
annotation class Ann(
|
|
val arg1: Int,
|
|
val arg2: KClass<*> = Int::class,
|
|
val arg3: Array<KClass<out Any?>> = array(String::class),
|
|
vararg val arg4: KClass<out Any?> = array(Double::class)
|
|
)
|
|
|
|
Ann(arg1 = 1) class MyClass1
|
|
Ann(arg1 = 2, arg2 = Boolean::class) class MyClass2
|
|
Ann(arg1 = 3, arg3 = array(Boolean::class)) class MyClass3
|
|
Ann(arg1 = 4, arg4 = String::class) class MyClass4
|