aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/BuilderDefaultsTargetTyping.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj/BuilderDefaultsTargetTyping.java')
-rw-r--r--test/transform/resource/after-ecj/BuilderDefaultsTargetTyping.java42
1 files changed, 42 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/BuilderDefaultsTargetTyping.java b/test/transform/resource/after-ecj/BuilderDefaultsTargetTyping.java
new file mode 100644
index 00000000..4b9235d6
--- /dev/null
+++ b/test/transform/resource/after-ecj/BuilderDefaultsTargetTyping.java
@@ -0,0 +1,42 @@
+import java.util.Arrays;
+import lombok.Builder;
+public @Builder class BuilderDefaultsTargetTyping {
+ public static @java.lang.SuppressWarnings("all") class BuilderDefaultsTargetTypingBuilder {
+ private @java.lang.SuppressWarnings("all") String foo$value;
+ private @java.lang.SuppressWarnings("all") boolean foo$set;
+ @java.lang.SuppressWarnings("all") BuilderDefaultsTargetTypingBuilder() {
+ super();
+ }
+ /**
+ * @return {@code this}.
+ */
+ public @java.lang.SuppressWarnings("all") BuilderDefaultsTargetTyping.BuilderDefaultsTargetTypingBuilder foo(final String foo) {
+ this.foo$value = foo;
+ foo$set = true;
+ return this;
+ }
+ public @java.lang.SuppressWarnings("all") BuilderDefaultsTargetTyping build() {
+ String foo$value = this.foo$value;
+ if ((! this.foo$set))
+ foo$value = BuilderDefaultsTargetTyping.$default$foo();
+ return new BuilderDefaultsTargetTyping(foo$value);
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (("BuilderDefaultsTargetTyping.BuilderDefaultsTargetTypingBuilder(foo$value=" + this.foo$value) + ")");
+ }
+ }
+ @Builder.Default String foo;
+ static String doSth(java.util.List<Integer> i, java.util.List<Character> c) {
+ return null;
+ }
+ private static @java.lang.SuppressWarnings("all") String $default$foo() {
+ return doSth(Arrays.asList(1), Arrays.asList('a'));
+ }
+ @java.lang.SuppressWarnings("all") BuilderDefaultsTargetTyping(final String foo) {
+ super();
+ this.foo = foo;
+ }
+ public static @java.lang.SuppressWarnings("all") BuilderDefaultsTargetTyping.BuilderDefaultsTargetTypingBuilder builder() {
+ return new BuilderDefaultsTargetTyping.BuilderDefaultsTargetTypingBuilder();
+ }
+}