class Test { @Deprecated(forRemoval = true) int foo; } class Usages { private Test t; int normal() { return t.foo; } @Deprecated() int normallyDeprecated() { return t.foo; } @Deprecated(forRemoval = 1 + 1 == 2) int deprecatedForRemoval() { return t.foo; } @SuppressWarnings("deprecation") int suppressDeprecation() { return t.foo; } @SuppressWarnings("removal") int suppressRemoval() { return t.foo; } }