mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
[java-inspections] IDEA-288528 Add a quick-fix to correct typeuse nullability annotation
GitOrigin-RevId: ac4d271bc6e43306532d201e74fcf6e9f7b2e6ae
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f286fd9dba
commit
32442ebe48
@@ -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;}
|
||||
}
|
||||
@@ -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;}
|
||||
}
|
||||
Reference in New Issue
Block a user