mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-23 18:03:06 +07:00
32 lines
720 B
Java
32 lines
720 B
Java
class Test {
|
|
@Deprecated(forRemoval = true)
|
|
void foo() {}
|
|
}
|
|
|
|
class Usages {
|
|
private Test t;
|
|
|
|
void normal() {
|
|
t.<error descr="'foo()' is deprecated and marked for removal">foo</error>();
|
|
}
|
|
|
|
@Deprecated()
|
|
void normallyDeprecated() {
|
|
t.<error descr="'foo()' is deprecated and marked for removal">foo</error>();
|
|
}
|
|
|
|
@Deprecated(forRemoval = 1 + 1 == 2)
|
|
void deprecatedForRemoval() {
|
|
t.<error descr="'foo()' is deprecated and marked for removal">foo</error>();
|
|
}
|
|
|
|
@SuppressWarnings("deprecation")
|
|
void suppressDeprecation() {
|
|
t.<error descr="'foo()' is deprecated and marked for removal">foo</error>();
|
|
}
|
|
|
|
@SuppressWarnings("removal")
|
|
void suppressRemoval() {
|
|
t.foo();
|
|
}
|
|
} |