IDEA-54397 (type annotations in override/implement)

This commit is contained in:
Roman Shevchenko
2014-03-11 15:00:16 +01:00
parent 3f3e06483b
commit 64c651e7c5
3 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
// "Implement Methods" "true"
import java.lang.annotation.*;
import java.util.*;
@Target(ElementType.TYPE_USE)
@interface TA { int value() default 0; }
interface I {
@TA List<@TA String> i(@TA int p1, @TA(1) int @TA(2) [] p2 @TA(3) []) throws @TA IllegalArgumentException;
}
class C implements I {
@Override
public @TA List<@TA String> i(@TA int p1, @TA(1) int @TA(2) [] @TA(3) [] p2) throws @TA IllegalArgumentException {
return null;
}
}

View File

@@ -0,0 +1,13 @@
// "Implement Methods" "true"
import java.lang.annotation.*;
import java.util.*;
@Target(ElementType.TYPE_USE)
@interface TA { int value() default 0; }
interface I {
@TA List<@TA String> i(@TA int p1, @TA(1) int @TA(2) [] p2 @TA(3) []) throws @TA IllegalArgumentException;
}
<caret>class C implements I {
}