aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/BuilderWithTolerateWithSetterPrefix.java
blob: 6fa302e52b7fe4cea22f5adb37407b815333593c (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
import lombok.Builder;
import lombok.experimental.Tolerate;
public @Builder(setterPrefix = "with") class BuilderWithTolerateWithSetterPrefix {
  public static class BuilderWithTolerateWithSetterPrefixBuilder {
    private @java.lang.SuppressWarnings("all") int value;
    public @Tolerate BuilderWithTolerateWithSetterPrefixBuilder withValue(String s) {
      return this.withValue(Integer.parseInt(s));
    }
    @java.lang.SuppressWarnings("all") BuilderWithTolerateWithSetterPrefixBuilder() {
      super();
    }
    public @java.lang.SuppressWarnings("all") BuilderWithTolerateWithSetterPrefixBuilder withValue(final int value) {
      this.value = value;
      return this;
    }
    public @java.lang.SuppressWarnings("all") BuilderWithTolerateWithSetterPrefix build() {
      return new BuilderWithTolerateWithSetterPrefix(value);
    }
    public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
      return (("BuilderWithTolerateWithSetterPrefix.BuilderWithTolerateWithSetterPrefixBuilder(value=" + this.value) + ")");
    }
  }
  private final int value;
  public static void main(String[] args) {
    BuilderWithTolerateWithSetterPrefix.builder().withValue("42").build();
  }
  @java.lang.SuppressWarnings("all") BuilderWithTolerateWithSetterPrefix(final int value) {
    super();
    this.value = value;
  }
  public static @java.lang.SuppressWarnings("all") BuilderWithTolerateWithSetterPrefixBuilder builder() {
    return new BuilderWithTolerateWithSetterPrefixBuilder();
  }
}