diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-07-12 20:08:21 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-07-23 22:23:55 +0200 |
commit | b1f6372b358119309b26016317a6dd709b9daa13 (patch) | |
tree | 73c0222d4419221020285e2d6f8dc588e56a9933 /test/transform/resource/before | |
parent | ce92389da76b17b2c8d9f8757d67b4ea3edc8cb5 (diff) | |
download | lombok-b1f6372b358119309b26016317a6dd709b9daa13.tar.gz lombok-b1f6372b358119309b26016317a6dd709b9daa13.tar.bz2 lombok-b1f6372b358119309b26016317a6dd709b9daa13.zip |
[fixes #2300] Keep method argument positions for lazy getter initializer
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/GetterLazyArguments.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/transform/resource/before/GetterLazyArguments.java b/test/transform/resource/before/GetterLazyArguments.java new file mode 100644 index 00000000..47dfae55 --- /dev/null +++ b/test/transform/resource/before/GetterLazyArguments.java @@ -0,0 +1,21 @@ +// version 8: +class GetterLazyArguments { + static String fun() { return null; } + static String stringInt(String arg1, Integer arg2) { return null; } + static String stringRunnable(String arg1, Runnable arg2) { return null; } + + @lombok.Getter(lazy=true) + private final String field1 = stringInt(("a"), (1)); + + @lombok.Getter(lazy=true) + private final String field2 = stringInt(true ? "a" : "b", true ? 1 : 0); + + @lombok.Getter(lazy=true) + private final String field3 = stringInt(("a"), true ? 1 : 0); + + @lombok.Getter(lazy=true) + private final String field4 = stringRunnable(fun(), () -> { }); + + @lombok.Getter(lazy=true) + private final String field5 = stringRunnable(("a"), () -> { }); +} |