1 2 3 4 5
class Foo { /** @deprecated use {@link #bar} instead */ public void foo() {} public void bar() {} }