diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-06-18 03:33:35 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-06-18 03:33:35 +0200 |
commit | eb3d32c718d9ef46fd30bc677147cda85318fb9c (patch) | |
tree | 6b9a60d1b5d02d938b7a42798629d53227325f08 /test/transform/resource/after-delombok/BuilderComplex.java | |
parent | e047d2b94e1206bbf304725c20ee20afbd1681fb (diff) | |
download | lombok-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/BuilderComplex.java')
-rw-r--r-- | test/transform/resource/after-delombok/BuilderComplex.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/BuilderComplex.java b/test/transform/resource/after-delombok/BuilderComplex.java new file mode 100644 index 00000000..d6d12ebf --- /dev/null +++ b/test/transform/resource/after-delombok/BuilderComplex.java @@ -0,0 +1,43 @@ +import java.util.List; +class BuilderComplex { + private static <T extends Number> void testVoidWithGenerics(T number, int arg2, String arg3, BuilderComplex selfRef) { + } + @java.lang.SuppressWarnings("all") + public static class VoidBuilder<T extends Number> { + private T number; + private int arg2; + private String arg3; + private BuilderComplex selfRef; + @java.lang.SuppressWarnings("all") + VoidBuilder() { + } + @java.lang.SuppressWarnings("all") + public VoidBuilder<T> number(final T number) { + this.number = number; + return this; + } + @java.lang.SuppressWarnings("all") + public VoidBuilder<T> arg2(final int arg2) { + this.arg2 = arg2; + return this; + } + @java.lang.SuppressWarnings("all") + public VoidBuilder<T> arg3(final String arg3) { + this.arg3 = arg3; + return this; + } + @java.lang.SuppressWarnings("all") + public VoidBuilder<T> selfRef(final BuilderComplex selfRef) { + this.selfRef = selfRef; + return this; + } + @java.lang.SuppressWarnings("all") + public void execute() { + BuilderComplex.<T>testVoidWithGenerics(number, arg2, arg3, selfRef); + } + } + @java.lang.SuppressWarnings("all") + public static <T extends Number> VoidBuilder<T> builder() { + return new VoidBuilder<T>(); + } +}
\ No newline at end of file |