SpecifyTypeExplicitlyIntention: remove annotations from result type

#KT-36930 Fixed
This commit is contained in:
Dmitry Gridin
2020-05-15 17:29:08 +07:00
parent d6a8003743
commit b2be1a53cf
10 changed files with 58 additions and 2 deletions
@@ -0,0 +1,10 @@
package source;
import org.jetbrains.annotations.NotNull;
class A {
@NotNull
public String doSmth() {
return "";
}
}
@@ -0,0 +1,3 @@
package org.jetbrains.annotations
annotation class NotNull
@@ -0,0 +1,5 @@
package source
fun main() {
val myVar: String = A().doSmth()
}
@@ -0,0 +1,10 @@
package source;
import org.jetbrains.annotations.NotNull;
class A {
@NotNull
public String doSmth() {
return "";
}
}
@@ -0,0 +1,3 @@
package org.jetbrains.annotations
annotation class NotNull
@@ -0,0 +1,5 @@
package source
fun main() {
val myVar<caret> = A().doSmth()
}
@@ -0,0 +1,5 @@
{
"mainFile": "source/kt36930.kt",
"intentionClass": "org.jetbrains.kotlin.idea.intentions.SpecifyTypeExplicitlyIntention",
"withRuntime": true
}