diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-09-12 14:35:40 +0200 |
---|---|---|
committer | Rawi01 <Rawi01@users.noreply.github.com> | 2020-09-12 14:35:40 +0200 |
commit | fa0b5249cf5fee28d9be13ecdf0225f651f686aa (patch) | |
tree | 881cc34c60f69d7895be222201a059d268d91cf0 /test/transform/resource/before | |
parent | 0064c534273d9fb877f7e570f7a430060c88a5fb (diff) | |
download | lombok-fa0b5249cf5fee28d9be13ecdf0225f651f686aa.tar.gz lombok-fa0b5249cf5fee28d9be13ecdf0225f651f686aa.tar.bz2 lombok-fa0b5249cf5fee28d9be13ecdf0225f651f686aa.zip |
Support With(By) on records and record components
This also replaces the javac/eclipse specific code for searching the
parent fields of an annotation by a search based on the lombok AST.
Diffstat (limited to 'test/transform/resource/before')
3 files changed, 14 insertions, 1 deletions
diff --git a/test/transform/resource/before/WithByOnRecord.java b/test/transform/resource/before/WithByOnRecord.java index 98cbff9b..6c7b8e2d 100644 --- a/test/transform/resource/before/WithByOnRecord.java +++ b/test/transform/resource/before/WithByOnRecord.java @@ -2,5 +2,6 @@ import lombok.experimental.WithBy; -record WithByOnRecord(@WithBy String a, String b) { +@WithBy +record WithByOnRecord(String a, String b) { }
\ No newline at end of file diff --git a/test/transform/resource/before/WithByOnRecordComponent.java b/test/transform/resource/before/WithByOnRecordComponent.java new file mode 100644 index 00000000..7e0f0f19 --- /dev/null +++ b/test/transform/resource/before/WithByOnRecordComponent.java @@ -0,0 +1,6 @@ +// version 14: + +import lombok.experimental.WithBy; + +record WithByOnRecordComponent(@WithBy String a, String b) { +}
\ No newline at end of file diff --git a/test/transform/resource/before/WithOnRecordComponent.java b/test/transform/resource/before/WithOnRecordComponent.java new file mode 100644 index 00000000..6f827851 --- /dev/null +++ b/test/transform/resource/before/WithOnRecordComponent.java @@ -0,0 +1,6 @@ +// version 14: + +import lombok.With; + +record WithOnRecordComponent(@With String a, String b) { +}
\ No newline at end of file |