mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 18:05:28 +07:00
MethodReturnTypeFix: highlight only return statements when method return type doesn't match expected (IDEA-216275)
GitOrigin-RevId: d5f7dc3b03d68d249ba29532b0e8c0555cae60d6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ba328fd25a
commit
642c65dd11
+1
-1
@@ -9,7 +9,7 @@ public class WrongGenerics {
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
<T> Set<Foo<? extends T>> <error descr="Invalid return type">bar</error>(Set<Foo<? extends T>> foo) {
|
||||
<T> Set<Foo<? extends T>> bar(Set<Foo<? extends T>> foo) {
|
||||
return <error descr="Inconvertible types; cannot cast 'java.util.Set<Foo<? extends T>>' to 'java.util.Set<Foo<?>>'">(Set<Foo<?>>) foo</error>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user