mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
change signature: don't ask about covariant overrides when types are equal, e.g. when super type is changed based on override method return type
type annotations: ensure annotations are cloned so invalidating initial type doesn't break the consequence refactoring EA-93296 - PIEAE: PsiUtilCore.ensureValid
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// "Make 'a.f' return 'java.util.List<java.lang.@N String>'" "true"
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE})
|
||||
@interface N {}
|
||||
|
||||
class a {
|
||||
List<@N String> f() {
|
||||
return ;
|
||||
}
|
||||
}
|
||||
|
||||
class b extends a {
|
||||
List<@N String> f() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
// "Make 'a.f' return 'java.util.List<java.lang.@N String>'" "true"
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.List;
|
||||
|
||||
@Target({ElementType.TYPE_USE})
|
||||
@interface N {}
|
||||
|
||||
class a {
|
||||
void f() {
|
||||
return ;
|
||||
}
|
||||
}
|
||||
|
||||
class b extends a {
|
||||
<caret>List<@N String> f() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user