aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.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/BuilderWithExistingBuilderClass.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/BuilderWithExistingBuilderClass.java')
-rw-r--r--test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java b/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java
new file mode 100644
index 00000000..a8800009
--- /dev/null
+++ b/test/transform/resource/after-delombok/BuilderWithExistingBuilderClass.java
@@ -0,0 +1,33 @@
+class BuilderWithExistingBuilderClass<T, K extends Number> {
+ public static <Z extends Number> BuilderWithExistingBuilderClass<String, Z> staticMethod(Z arg1, boolean arg2, String arg3) {
+ return null;
+ }
+ public static class BuilderWithExistingBuilderClassBuilder<Z extends Number> {
+ private boolean arg2;
+ private String arg3;
+ private Z arg1;
+ public void arg2(boolean arg) {
+ }
+ @java.lang.SuppressWarnings("all")
+ BuilderWithExistingBuilderClassBuilder() {
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderWithExistingBuilderClassBuilder<Z> arg1(final Z arg1) {
+ this.arg1 = arg1;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderWithExistingBuilderClassBuilder<Z> arg3(final String arg3) {
+ this.arg3 = arg3;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public BuilderWithExistingBuilderClass build() {
+ return BuilderWithExistingBuilderClass.<Z>staticMethod(arg1, arg2, arg3);
+ }
+ }
+ @java.lang.SuppressWarnings("all")
+ public static <Z extends Number> BuilderWithExistingBuilderClassBuilder<Z> builder() {
+ return new BuilderWithExistingBuilderClassBuilder<Z>();
+ }
+} \ No newline at end of file