mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make type parameter implements interface: don't insert any methods in code
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ public class OverrideImplementExploreUtil {
|
||||
Map<MethodSignature, PsiMethod> finals = new LinkedHashMap<>();
|
||||
Map<MethodSignature, PsiMethod> concretes = new LinkedHashMap<>();
|
||||
|
||||
if (aClass.isAnnotationType()) return Collections.emptyMap();
|
||||
if (aClass.isAnnotationType() || aClass instanceof PsiTypeParameter) return Collections.emptyMap();
|
||||
|
||||
PsiUtilCore.ensureValid(aClass);
|
||||
Collection<HierarchicalMethodSignature> allMethodSigs = aClass.getVisibleSignatures();
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Make 'T' implement 'b'" "true"
|
||||
class a<T extends b<String>> {
|
||||
void f(b<String> r, T t) {
|
||||
r.g(t);
|
||||
}
|
||||
}
|
||||
interface b<T> {
|
||||
void g(b<T> t);
|
||||
}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Make 'T' implement 'b'" "true"
|
||||
class a<T> {
|
||||
void f(b<String> r, T t) {
|
||||
r.g(<caret>t);
|
||||
}
|
||||
}
|
||||
interface b<T> {
|
||||
void g(b<T> t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user