mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-54396 (type annotations in "Wrap Return Value")
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import java.lang.annotation.*;
|
||||
|
||||
@Target({ElementType.TYPE_USE})
|
||||
@interface TA { }
|
||||
|
||||
class Test {
|
||||
Wrapper foo() {
|
||||
return new Wrapper(null);
|
||||
}
|
||||
}
|
||||
+13
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user