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