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