mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
MethodReturnTypeFix: updated fix to change method return type based on return statements in method body (IDEA-216275)
GitOrigin-RevId: e97990950039123c8c41921a71342b8ed60afdee
This commit is contained in:
committed by
intellij-monorepo-bot
parent
52aa1ae553
commit
42d733a694
+1
-1
@@ -11,7 +11,7 @@ interface Foo<T> {
|
||||
}
|
||||
|
||||
class Bar {
|
||||
Foo<List<String>> transform(final Foo<? extends String> foo) {
|
||||
Foo<List<String>> <error descr="Invalid return type">transform</error>(final Foo<? extends String> foo) {
|
||||
<error descr="Incompatible types. Found: 'Foo<? extends java.util.List<? extends java.lang.String>>', required: 'Foo<java.util.List<java.lang.String>>'">return foo
|
||||
.map(v2 -> tuple(v2))
|
||||
.onClose();</error>
|
||||
|
||||
Reference in New Issue
Block a user