mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 07:13:15 +00:00
29 lines
563 B
Java
29 lines
563 B
Java
class DelegateWithDeprecated {
|
|
|
|
private Bar bar;
|
|
|
|
private interface Bar {
|
|
|
|
@Deprecated
|
|
void deprecatedAnnotation();
|
|
/** @deprecated */
|
|
void deprecatedComment();
|
|
|
|
void notDeprecated();
|
|
}
|
|
|
|
@java.lang.Deprecated
|
|
@java.lang.SuppressWarnings("all")
|
|
public void deprecatedAnnotation() {
|
|
this.bar.deprecatedAnnotation();
|
|
}
|
|
@java.lang.Deprecated
|
|
@java.lang.SuppressWarnings("all")
|
|
public void deprecatedComment() {
|
|
this.bar.deprecatedComment();
|
|
}
|
|
@java.lang.SuppressWarnings("all")
|
|
public void notDeprecated() {
|
|
this.bar.notDeprecated();
|
|
}
|
|
} |