mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 10:18:46 +00:00
Add deprecated comment support for eclipse.
This commit is contained in:
1 parent
c63d036e78
commit
821370e01b
2 files changed
+20
-23
No files matched your search
@@ -1,24 +1,21 @@
|
||||
import lombok.Delegate;
|
||||
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();
|
||||
}
|
||||
private interface Bar {
|
||||
@Deprecated void deprecatedAnnotation();
|
||||
void deprecatedComment();
|
||||
void notDeprecated();
|
||||
}
|
||||
private @Delegate Bar bar;
|
||||
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();
|
||||
}
|
||||
DelegateWithDeprecated() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user