1 package p; 2 3 public class A { 4 5 /** 6 * This is the method foo. 7 * @deprecated Use {@link #foo()} instead 8 * 9 */ foo()10 void foo() { 11 foo(); 12 } 13 14 /** 15 * This is the method foo. 16 * 17 */ foo()18 void foo() { 19 20 } 21 } 22