IDEA-54396 (type annotations in "Wrap Return Value")

This commit is contained in:
Roman Shevchenko
2014-03-11 15:07:58 +01:00
parent b360456894
commit 3f3e06483b
6 changed files with 40 additions and 5 deletions
@@ -0,0 +1,10 @@
import java.lang.annotation.*;
@Target({ElementType.TYPE_USE})
@interface TA { }
class Test {
Wrapper foo() {
return new Wrapper(null);
}
}
@@ -0,0 +1,13 @@
import java.util.List;
public class Wrapper {
private final List<String> value;
public Wrapper(@TA List<@TA String> value) {
this.value = value;
}
public @TA List<@TA String> getValue() {
return value;
}
}
@@ -0,0 +1,11 @@
import java.lang.annotation.*;
import java.util.*;
@Target({ElementType.TYPE_USE})
@interface TA { }
class Test {
@TA List<@TA String> foo() {
return null;
}
}