mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-01 08:21:01 +00:00
22 lines
645 B
Java
22 lines
645 B
Java
import lombok.experimental.Delegate;
|
|
class DelegateWithDeprecated {
|
|
private interface Bar {
|
|
@Deprecated void deprecatedAnnotation();
|
|
void deprecatedComment();
|
|
void notDeprecated();
|
|
}
|
|
private @Delegate Bar bar;
|
|
DelegateWithDeprecated() {
|
|
super();
|
|
}
|
|
public @java.lang.Deprecated @java.lang.SuppressWarnings("all") void deprecatedAnnotation() {
|
|
this.bar.deprecatedAnnotation();
|
|
}
|
|
public @java.lang.Deprecated @java.lang.SuppressWarnings("all") void deprecatedComment() {
|
|
this.bar.deprecatedComment();
|
|
}
|
|
public @java.lang.SuppressWarnings("all") void notDeprecated() {
|
|
this.bar.notDeprecated();
|
|
}
|
|
}
|