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