[java-inspections] IDEA-288528 Add a quick-fix to correct typeuse nullability annotation

GitOrigin-RevId: ac4d271bc6e43306532d201e74fcf6e9f7b2e6ae
This commit is contained in:
Tagir Valeev
2022-02-11 12:20:08 +07:00
committed by intellij-monorepo-bot
parent f286fd9dba
commit 32442ebe48
6 changed files with 100 additions and 18 deletions

View File

@@ -0,0 +1,11 @@
// "Fix all '@NotNull/@Nullable problems' problems in file" "true"
package typeUse;
import java.lang.annotation.*;
@Target(ElementType.TYPE_USE) public @interface NotNull { }
@Target(ElementType.TYPE_USE) public @interface Nullable { }
class X {
byte @NotNull [] getBytes(byte @Nullable [] input, @NotNull byte another) {return null;}
}

View File

@@ -0,0 +1,11 @@
// "Fix all '@NotNull/@Nullable problems' problems in file" "true"
package typeUse;
import java.lang.annotation.*;
@Target(ElementType.TYPE_USE) public @interface NotNull { }
@Target(ElementType.TYPE_USE) public @interface Nullable { }
class X {
@<caret>NotNull byte[] getBytes(@Nullable byte[] input, @NotNull byte another) {return null;}
}