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:
peter
2017-06-21 19:55:55 +02:00
parent ae96bf40d4
commit 94701d360d
3 changed files with 11 additions and 3 deletions
@@ -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;
}
}
}