From 87cca2d322be09c51d1e63eea195addd1e99a7e2 Mon Sep 17 00:00:00 2001 From: peichhorn Date: Mon, 5 Dec 2011 22:42:50 +0100 Subject: [Issue 275] Allow @Delegate on no-argument methods --- .../transform/resource/after-eclipse/DelegateOnMethods.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/transform/resource/after-eclipse/DelegateOnMethods.java (limited to 'test/transform/resource/after-eclipse') diff --git a/test/transform/resource/after-eclipse/DelegateOnMethods.java b/test/transform/resource/after-eclipse/DelegateOnMethods.java new file mode 100644 index 00000000..37922e2a --- /dev/null +++ b/test/transform/resource/after-eclipse/DelegateOnMethods.java @@ -0,0 +1,13 @@ +import lombok.Delegate; +abstract class DelegateOnMethods { + public static interface Bar { + void bar(java.util.ArrayList list); + } + public @java.lang.SuppressWarnings("all") void bar(final java.util.ArrayList list) { + this.getBar().bar(list); + } + DelegateOnMethods() { + super(); + } + public abstract @Delegate Bar getBar(); +} \ No newline at end of file -- cgit