public class JavaClass { @Deprecated public String foo() { return ""; } }