aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/DelegateOnMethods.java
diff options
context:
space:
mode:
authorpeichhorn <peichhor@web.de>2011-12-05 22:42:50 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-01-19 00:44:47 +0100
commit87cca2d322be09c51d1e63eea195addd1e99a7e2 (patch)
tree42aae98ee58d80625c6e696f8baac22707d5ede4 /test/transform/resource/after-delombok/DelegateOnMethods.java
parent68fe3f41e962d247ec372e40c8714f57e5ebee05 (diff)
downloadlombok-87cca2d322be09c51d1e63eea195addd1e99a7e2.tar.gz
lombok-87cca2d322be09c51d1e63eea195addd1e99a7e2.tar.bz2
lombok-87cca2d322be09c51d1e63eea195addd1e99a7e2.zip
[Issue 275] Allow @Delegate on no-argument methods
Diffstat (limited to 'test/transform/resource/after-delombok/DelegateOnMethods.java')
-rw-r--r--test/transform/resource/after-delombok/DelegateOnMethods.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/DelegateOnMethods.java b/test/transform/resource/after-delombok/DelegateOnMethods.java
new file mode 100644
index 00000000..b900f140
--- /dev/null
+++ b/test/transform/resource/after-delombok/DelegateOnMethods.java
@@ -0,0 +1,12 @@
+abstract class DelegateOnMethods {
+ public abstract Bar getBar();
+
+ public static interface Bar {
+ void bar(java.util.ArrayList<java.lang.String> list);
+ }
+
+ @java.lang.SuppressWarnings("all")
+ public void bar(final java.util.ArrayList<java.lang.String> list) {
+ this.getBar().bar(list);
+ }
+} \ No newline at end of file