import java.util.Arrays; public class BuilderDefaultsTargetTyping { String foo; static String doSth(java.util.List i, java.util.List 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(); } }