mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
MethodReturnTypeFix: do not suggest when type refers to type parameter not available at method declaration
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// "Make 'method' return 'java.util.List<T>'" "true"
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
class Inner<T> {
|
||||
List<T> method() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void test() {
|
||||
List<T> t = method();
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Make 'method' return 'java.util.List<T>'" "true"
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
class Inner<T> {
|
||||
void method() {}
|
||||
|
||||
void test() {
|
||||
List<T> t = met<caret>hod();
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Make 'method' return 'java.util.List<T>'" "false"
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
void method() {}
|
||||
|
||||
class Inner<T> {
|
||||
|
||||
void test() {
|
||||
List<T> t = met<caret>hod();
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Make 'method' return 'java.util.List<T>'" "false"
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
static class Inner<T> {
|
||||
static void method() {}
|
||||
|
||||
void test() {
|
||||
List<T> t = met<caret>hod();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user