mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-18 10:14:58 +00:00
Merge pull request #3831 from Rawi01/delegate-record
Detect @Delegate on record components
This commit is contained in:
5 files changed
+45
-8
No files matched your search
@@ -0,0 +1,8 @@
|
||||
// version 14:
|
||||
record DelegateOnRecord(Runnable runnable) {
|
||||
@java.lang.SuppressWarnings("all")
|
||||
@lombok.Generated
|
||||
public void run() {
|
||||
this.runnable.run();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
//platform !eclipse: Requires a 'full' eclipse with intialized workspace, and we don't (yet) have that set up properly in the test run.
|
||||
//version 14:
|
||||
import lombok.experimental.Delegate;
|
||||
|
||||
record DelegateOnRecord(@Delegate Runnable runnable) {
|
||||
}
|
||||
Reference in new issue
Block a user