diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2021-10-22 10:15:29 +0200 |
---|---|---|
committer | Rawi01 <Rawi01@users.noreply.github.com> | 2021-10-22 10:18:07 +0200 |
commit | 1d7db8c4dfa2f7a26d9816398947f6e76e506093 (patch) | |
tree | c978347378b6c9cd6a31770ac3780193ad13896b /test/transform/resource | |
parent | 8bbac04478cb088eedceb4c63dcb45e30f0948ed (diff) | |
download | lombok-1d7db8c4dfa2f7a26d9816398947f6e76e506093.tar.gz lombok-1d7db8c4dfa2f7a26d9816398947f6e76e506093.tar.bz2 lombok-1d7db8c4dfa2f7a26d9816398947f6e76e506093.zip |
[fixes #2995] Skip records for field defaults via config
Diffstat (limited to 'test/transform/resource')
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 |