SpecifyTypeExplicitlyIntention: remove annotations from result type
#KT-36930 Fixed
This commit is contained in:
@@ -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
|
||||
+5
@@ -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
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package source
|
||||
|
||||
fun main() {
|
||||
val myVar<caret> = A().doSmth()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"mainFile": "source/kt36930.kt",
|
||||
"intentionClass": "org.jetbrains.kotlin.idea.intentions.SpecifyTypeExplicitlyIntention",
|
||||
"withRuntime": true
|
||||
}
|
||||
Reference in New Issue
Block a user