mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
suggest to fix return type based on args of method call in return stmt (IDEA-140894)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import java.util.List;
|
||||
|
||||
// "Make 'bar' return 'java.util.List<java.lang.String>'" "true"
|
||||
public class Foo {
|
||||
<T> java.util.List<T> foo(T t) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<String> bar() {
|
||||
return foo("");
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Make 'bar' return 'java.util.List<java.lang.String>'" "true"
|
||||
public class Foo {
|
||||
<T> java.util.List<T> foo(T t) {
|
||||
return null;
|
||||
}
|
||||
|
||||
String bar() {
|
||||
return fo<caret>o("");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user