aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/BuilderSimple.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-06-18 03:33:35 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-06-18 03:33:35 +0200
commiteb3d32c718d9ef46fd30bc677147cda85318fb9c (patch)
tree6b9a60d1b5d02d938b7a42798629d53227325f08 /test/transform/resource/after-delombok/BuilderSimple.java
parente047d2b94e1206bbf304725c20ee20afbd1681fb (diff)
downloadlombok-eb3d32c718d9ef46fd30bc677147cda85318fb9c.tar.gz
lombok-eb3d32c718d9ef46fd30bc677147cda85318fb9c.tar.bz2
lombok-eb3d32c718d9ef46fd30bc677147cda85318fb9c.zip
finished tests for builder (added after-delombok versions).
Diffstat (limited to 'test/transform/resource/after-delombok/BuilderSimple.java')
-rw-r--r--test/transform/resource/after-delombok/BuilderSimple.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/BuilderSimple.java b/test/transform/resource/after-delombok/BuilderSimple.java
new file mode 100644
index 00000000..113d538e
--- /dev/null
+++ b/test/transform/resource/after-delombok/BuilderSimple.java
@@ -0,0 +1,38 @@
+import java.util.List;
+class BuilderSimple<T> {
+ private final int noshow = 0;
+ private final int yes;
+ private List<T> also;
+ private int $butNotMe;
+ @java.lang.SuppressWarnings("all")
+ private BuilderSimple(final int yes, final List<T> also) {
+ this.yes = yes;
+ this.also = also;
+ }
+ @java.lang.SuppressWarnings("all")
+ public static class BuilderSimpleBuilder<T> {
+ private int yes;
+ private List<T> also;
+ @java.lang.SuppressWarnings("all")
+ BuilderSimpleBuilder() {
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderSimpleBuilder<T> yes(final int yes) {
+ this.yes = yes;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderSimpleBuilder<T> also(final List<T> also) {
+ this.also = also;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderSimple<T> build() {
+ return new BuilderSimple<T>(yes, also);
+ }
+ }
+ @java.lang.SuppressWarnings("all")
+ public static <T> BuilderSimpleBuilder<T> builder() {
+ return new BuilderSimpleBuilder<T>();
+ }
+}