mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 06:51:01 +07:00
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
14 lines
194 B
Java
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>(() -> {});
|
|
}
|
|
} |