aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/BuilderDefaultsTargetTyping.java
blob: 4b9235d6f2612774017bb0526c38bf0b19b7d69f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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();
  }
}