aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/before/DelegateOnStatic.java12
-rw-r--r--test/transform/resource/messages-delombok/DelegateOnStatic.java.messages2
-rw-r--r--test/transform/resource/messages-ecj/DelegateOnStatic.java.messages2
3 files changed, 16 insertions, 0 deletions
diff --git a/test/transform/resource/before/DelegateOnStatic.java b/test/transform/resource/before/DelegateOnStatic.java
new file mode 100644
index 00000000..ef56ef54
--- /dev/null
+++ b/test/transform/resource/before/DelegateOnStatic.java
@@ -0,0 +1,12 @@
+import lombok.Delegate;
+import lombok.Getter;
+
+class DelegateOnStatic {
+ @Delegate private static final java.lang.Runnable staticField = null;
+}
+
+class DelegateOnStaticMethod {
+ @Delegate private static final java.lang.Runnable staticMethod() {
+ return null;
+ };
+} \ No newline at end of file
diff --git a/test/transform/resource/messages-delombok/DelegateOnStatic.java.messages b/test/transform/resource/messages-delombok/DelegateOnStatic.java.messages
new file mode 100644
index 00000000..b807b155
--- /dev/null
+++ b/test/transform/resource/messages-delombok/DelegateOnStatic.java.messages
@@ -0,0 +1,2 @@
+5 @Delegate is legal only on instance fields or no-argument instance methods.
+9 @Delegate is legal only on instance fields or no-argument instance methods. \ No newline at end of file
diff --git a/test/transform/resource/messages-ecj/DelegateOnStatic.java.messages b/test/transform/resource/messages-ecj/DelegateOnStatic.java.messages
new file mode 100644
index 00000000..b807b155
--- /dev/null
+++ b/test/transform/resource/messages-ecj/DelegateOnStatic.java.messages
@@ -0,0 +1,2 @@
+5 @Delegate is legal only on instance fields or no-argument instance methods.
+9 @Delegate is legal only on instance fields or no-argument instance methods. \ No newline at end of file