aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/BuilderDefaultsTargetTyping.java12
-rw-r--r--test/transform/resource/before/SuperBuilderWithDefaultsAndTargetTyping.java18
2 files changed, 30 insertions, 0 deletions
diff --git a/test/transform/resource/before/BuilderDefaultsTargetTyping.java b/test/transform/resource/before/BuilderDefaultsTargetTyping.java
new file mode 100644
index 00000000..2d098779
--- /dev/null
+++ b/test/transform/resource/before/BuilderDefaultsTargetTyping.java
@@ -0,0 +1,12 @@
+import java.util.Arrays;
+import lombok.Builder;
+
+@Builder
+public class BuilderDefaultsTargetTyping {
+ @Builder.Default
+ String foo = doSth(Arrays.asList(1), Arrays.asList('a'));
+
+ static String doSth(java.util.List<Integer> i, java.util.List<Character> c) {
+ return null;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/SuperBuilderWithDefaultsAndTargetTyping.java b/test/transform/resource/before/SuperBuilderWithDefaultsAndTargetTyping.java
new file mode 100644
index 00000000..996615b6
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderWithDefaultsAndTargetTyping.java
@@ -0,0 +1,18 @@
+import java.util.Arrays;
+import lombok.Builder;
+
+public class SuperBuilderWithDefaultsAndTargetTyping {
+ @lombok.experimental.SuperBuilder
+ public static class Parent {
+ @lombok.Builder.Default private String foo = doSth(Arrays.asList(1), Arrays.asList('a'));
+ }
+
+ @lombok.experimental.SuperBuilder
+ public static class Child extends Parent {
+ @lombok.Builder.Default private String foo = doSth(Arrays.asList(1), Arrays.asList('a'));
+ }
+
+ static String doSth(java.util.List<Integer> i, java.util.List<Character> c) {
+ return null;
+ }
+} \ No newline at end of file