diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2021-10-22 10:35:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-22 10:35:39 +0200 |
commit | 82592b84bf803bc9802768afaa802b0dc58d6c83 (patch) | |
tree | c978347378b6c9cd6a31770ac3780193ad13896b /test/transform | |
parent | 8bbac04478cb088eedceb4c63dcb45e30f0948ed (diff) | |
parent | 1d7db8c4dfa2f7a26d9816398947f6e76e506093 (diff) | |
download | lombok-82592b84bf803bc9802768afaa802b0dc58d6c83.tar.gz lombok-82592b84bf803bc9802768afaa802b0dc58d6c83.tar.bz2 lombok-82592b84bf803bc9802768afaa802b0dc58d6c83.zip |
Merge pull request #3009 from Rawi01/field-defaults-record
Skip records for field defaults via config
Diffstat (limited to 'test/transform')
3 files changed, 20 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/FieldDefaultsViaConfigOnRecord.java b/test/transform/resource/after-delombok/FieldDefaultsViaConfigOnRecord.java new file mode 100644 index 00000000..1a2ce882 --- /dev/null +++ b/test/transform/resource/after-delombok/FieldDefaultsViaConfigOnRecord.java @@ -0,0 +1,3 @@ +// version 14: +public record FieldDefaultsViaConfigOnRecord(String a, String b) { +} diff --git a/test/transform/resource/after-ecj/FieldDefaultsViaConfigOnRecord.java b/test/transform/resource/after-ecj/FieldDefaultsViaConfigOnRecord.java new file mode 100644 index 00000000..44ef0d4c --- /dev/null +++ b/test/transform/resource/after-ecj/FieldDefaultsViaConfigOnRecord.java @@ -0,0 +1,10 @@ +// version 14: +public record FieldDefaultsViaConfigOnRecord(String a, String b) { +/* Implicit */ private final String a; +/* Implicit */ private final String b; + public FieldDefaultsViaConfigOnRecord(String a, String b) { + super(); + .a = a; + .b = b; + } +}
\ No newline at end of file diff --git a/test/transform/resource/before/FieldDefaultsViaConfigOnRecord.java b/test/transform/resource/before/FieldDefaultsViaConfigOnRecord.java new file mode 100644 index 00000000..e72179e9 --- /dev/null +++ b/test/transform/resource/before/FieldDefaultsViaConfigOnRecord.java @@ -0,0 +1,7 @@ +// version 14: +//CONF: lombok.fieldDefaults.defaultFinal = true +//CONF: lombok.fieldDefaults.defaultPrivate = true +//unchanged + +public record FieldDefaultsViaConfigOnRecord(String a, String b) { +}
\ No newline at end of file |