mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-146460 Assertions aren't generated for @NotNull method parameters and return types if @NotNull assertion is changed to TYPE_USE only
honor only top-level type annotations (IDEA-CR-22158)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import java.lang.annotation.*;
|
||||
import java.util.*;
|
||||
|
||||
@Target(ElementType.TYPE_USE)
|
||||
@interface FooAnno {}
|
||||
@@ -12,5 +13,9 @@ public class TypeUseOnlyAnnotations {
|
||||
public Object foo2(@FooAnno String arg) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public List<@FooAnno String> foo3(List<@FooAnno String> arg) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user