Merge pull request #3831 from Rawi01/delegate-record

Detect @Delegate on record components
This commit is contained in:
Reinier Zwitserloot authored and GitHub committed 2025-03-30 01:29:39 +01:00
commit 0ec007c041
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) {
}