diff options
author | Roel Spilker <r.spilker@gmail.com> | 2016-12-05 23:41:38 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2016-12-05 23:41:38 +0100 |
commit | cf82dcfb8057637255ce223671a8d727fe0a073a (patch) | |
tree | d7359b41ad7732c507b59b7c78003863ab1d44a7 /test/transform/resource/before | |
parent | 0727c8bfd305408074d908dc4f8c31c0bff54789 (diff) | |
download | lombok-cf82dcfb8057637255ce223671a8d727fe0a073a.tar.gz lombok-cf82dcfb8057637255ce223671a8d727fe0a073a.tar.bz2 lombok-cf82dcfb8057637255ce223671a8d727fe0a073a.zip |
Fixes #1236: Getter(lazy=true) now emits an error when used on a transient field
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/GetterLazyTransient.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/transform/resource/before/GetterLazyTransient.java b/test/transform/resource/before/GetterLazyTransient.java new file mode 100644 index 00000000..1a913669 --- /dev/null +++ b/test/transform/resource/before/GetterLazyTransient.java @@ -0,0 +1,10 @@ +class GetterLazyTransient { + @lombok.Getter(lazy=true) + private final int nonTransientField = 1; + + @lombok.Getter(lazy=true) + private final transient int transientField = 2; + + @lombok.Getter + private final transient int nonLazyTransientField = 3; +} |