Files
Anna Kozlova 5fcbd6cb28 java deprecation: don't highlight lambda if target functional interface is deprecated (IDEA-246336)
javac doesn't report such cases and most probably method with functional interface must be deprecated as well, so deprecation would be visible; otherwise too much code would be crossed out

GitOrigin-RevId: b75feb5a4052d6da9355bda1f37374c66d964b29
2020-07-22 08:34:34 +00:00

14 lines
194 B
Java

@Deprecated
interface I {
void m();
}
class Util {
@Deprecated
static void foo(I i) {}
}
class MyTest {
{
Util.<warning descr="'foo(I)' is deprecated">foo</warning>(() -> {});
}
}