Render flexible types with enhancement as enhanced in IDE (KT-25622)
Main targets for the fix is completion, parameters info, inlay hints and override/implement. Other IDE functions might be affected. #KT-24911 Fixed #KT-25616 Fixed #KT-25622 Fixed
This commit is contained in:
idea/testData/codeInsight/overrideImplement/androidxNotNull/androidx/annotation/RecentlyNonNull.java
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
package androidx.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.PARAMETER, ElementType.TYPE})
|
||||
public @interface RecentlyNonNull {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package androidx.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.lang.reflect.Parameter;
|
||||
|
||||
@Target({ElementType.PARAMETER, ElementType.TYPE})
|
||||
public @interface RecentlyNullable {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package foo;
|
||||
|
||||
import androidx.annotation.RecentlyNonNull;
|
||||
import androidx.annotation.RecentlyNullable;
|
||||
|
||||
public class A {
|
||||
public @RecentlyNonNull String foo(@RecentlyNonNull String s1, @RecentlyNullable String s2) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import foo.A
|
||||
|
||||
class B : A() {
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import foo.A
|
||||
|
||||
class B : A() {
|
||||
override fun foo(s1: String, s2: String?): String {
|
||||
return super.foo(s1, s2)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user