mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
[fixes #3830] Detect @Delegate on record components
This commit is contained in:
1 parent
47cb06ef2c
commit
9b37daa9da
5 files changed
+46
-9
No files matched your search
@@ -0,0 +1,8 @@
|
||||
// version 14:
|
||||
import lombok.experimental.Delegate;
|
||||
record DelegateOnRecord(Runnable runnable) {
|
||||
/* Implicit */ private final Runnable runnable;
|
||||
public @java.lang.SuppressWarnings("all") @lombok.Generated void run() {
|
||||
this.runnable.run();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user