diff options
author | Roel Spilker <r.spilker@gmail.com> | 2019-01-14 23:41:40 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2019-01-14 23:41:58 +0100 |
commit | 720b7cbc920940ec41fe96d7f91a80109bdf7ea8 (patch) | |
tree | aa2127aa94a2d7db47a845df9f7858b57fddecc9 /test/transform | |
parent | f3ead31326d0a6dc333c7d24f825f0f8441ebe30 (diff) | |
download | lombok-720b7cbc920940ec41fe96d7f91a80109bdf7ea8.tar.gz lombok-720b7cbc920940ec41fe96d7f91a80109bdf7ea8.tar.bz2 lombok-720b7cbc920940ec41fe96d7f91a80109bdf7ea8.zip |
[i1996] add test for warnings on non-existing fields
Diffstat (limited to 'test/transform')
3 files changed, 14 insertions, 0 deletions
diff --git a/test/transform/resource/before/EqualsAndHashCodeOfAndExcludeWarn.java b/test/transform/resource/before/EqualsAndHashCodeOfAndExcludeWarn.java new file mode 100644 index 00000000..9babf443 --- /dev/null +++ b/test/transform/resource/before/EqualsAndHashCodeOfAndExcludeWarn.java @@ -0,0 +1,10 @@ +// skip-compare-contents +@lombok.EqualsAndHashCode(of={"y"}) +final class EqualsAndHashCodeWarnOf { + int x; +} + +@lombok.EqualsAndHashCode(exclude={"y"}) +final class EqualsAndHashCodeWarnExclude { + int x; +} diff --git a/test/transform/resource/messages-delombok/EqualsAndHashCodeOfAndExcludeWarn.java.messages b/test/transform/resource/messages-delombok/EqualsAndHashCodeOfAndExcludeWarn.java.messages new file mode 100644 index 00000000..2c4fbd68 --- /dev/null +++ b/test/transform/resource/messages-delombok/EqualsAndHashCodeOfAndExcludeWarn.java.messages @@ -0,0 +1,2 @@ +1 This field does not exist. +6 This field does not exist, or would have been excluded anyway.
\ No newline at end of file diff --git a/test/transform/resource/messages-ecj/EqualsAndHashCodeOfAndExcludeWarn.java.messages b/test/transform/resource/messages-ecj/EqualsAndHashCodeOfAndExcludeWarn.java.messages new file mode 100644 index 00000000..2c4fbd68 --- /dev/null +++ b/test/transform/resource/messages-ecj/EqualsAndHashCodeOfAndExcludeWarn.java.messages @@ -0,0 +1,2 @@ +1 This field does not exist. +6 This field does not exist, or would have been excluded anyway.
\ No newline at end of file |