aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/WithOnRecordComponent.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/WithOnRecordComponent.java')
-rw-r--r--test/transform/resource/after-delombok/WithOnRecordComponent.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/WithOnRecordComponent.java b/test/transform/resource/after-delombok/WithOnRecordComponent.java
new file mode 100644
index 00000000..a5f4ec36
--- /dev/null
+++ b/test/transform/resource/after-delombok/WithOnRecordComponent.java
@@ -0,0 +1,6 @@
+record WithOnRecordComponent(String a, String b) {
+ @java.lang.SuppressWarnings("all")
+ public WithOnRecordComponent withA(final String a) {
+ return this.a == a ? this : new WithOnRecordComponent(a, this.b);
+ }
+}