diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-08-27 00:15:02 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2020-02-15 07:23:10 +0100 |
commit | a991bebe41bd5037323f682301a5fe77ea89b7b9 (patch) | |
tree | da92cd6868cf07b25ac91642d859d865ed43cbb9 /test/transform/resource/before | |
parent | d08229a58007da1968aa86b4dd4a3a9a21a7b578 (diff) | |
download | lombok-a991bebe41bd5037323f682301a5fe77ea89b7b9.tar.gz lombok-a991bebe41bd5037323f682301a5fe77ea89b7b9.tar.bz2 lombok-a991bebe41bd5037323f682301a5fe77ea89b7b9.zip |
[issue #2368] [withBy] support for javac
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/WithByNullAnnos.java | 6 | ||||
-rw-r--r-- | test/transform/resource/before/WithByTypes.java | 18 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/transform/resource/before/WithByNullAnnos.java b/test/transform/resource/before/WithByNullAnnos.java new file mode 100644 index 00000000..3fd8087f --- /dev/null +++ b/test/transform/resource/before/WithByNullAnnos.java @@ -0,0 +1,6 @@ +//CONF: lombok.addNullAnnotations=checkerframework +import java.util.List; +@lombok.RequiredArgsConstructor +public class WithByNullAnnos { + @lombok.experimental.WithBy final List<String> test; +} diff --git a/test/transform/resource/before/WithByTypes.java b/test/transform/resource/before/WithByTypes.java new file mode 100644 index 00000000..9d2fe358 --- /dev/null +++ b/test/transform/resource/before/WithByTypes.java @@ -0,0 +1,18 @@ +@lombok.RequiredArgsConstructor +@lombok.experimental.FieldDefaults(level = lombok.AccessLevel.PRIVATE, makeFinal = true) +@lombok.experimental.WithBy +public class WithByTypes<T> { + int a; + long b; + short c; + char d; + byte e; + double f; + float g; + boolean h; + T i; + + public static void example() { + new WithByTypes<String>(0, 0, (short) 0, ' ', (byte) 0, 0.0, 0.0F, true, "").withHBy(x -> !x).withFBy(x -> x + 0.5); + } +} |