redundant casts: don't treat cast as redundant if functional expression get more specific type (IDEA-152093)

This commit is contained in:
Anna Kozlova
2016-02-24 21:05:13 +01:00
parent e9b71e842b
commit 6e9234b115
5 changed files with 23 additions and 20 deletions
@@ -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) {}