mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
redundant casts: don't treat cast as redundant if functional expression get more specific type (IDEA-152093)
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Replace with lambda" "true"
|
||||
class A {
|
||||
{
|
||||
bar(() -> foo());
|
||||
bar((ThrowableComputable<String, Exception>) () -> foo());
|
||||
}
|
||||
|
||||
private <T> void bar(ThrowableComputable<T, Exception> throwableComputable) {}
|
||||
|
||||
Reference in New Issue
Block a user