public class Test { private String s() { } @Deprecated private String foo; }