aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/DelegateOnGetter.java18
-rw-r--r--test/transform/resource/before/DelegateOnGetterNone.java14
-rw-r--r--test/transform/resource/before/DelegateOnMethods.java11
-rw-r--r--test/transform/resource/before/GetterNone.java8
4 files changed, 51 insertions, 0 deletions
diff --git a/test/transform/resource/before/DelegateOnGetter.java b/test/transform/resource/before/DelegateOnGetter.java
new file mode 100644
index 00000000..afe09ff4
--- /dev/null
+++ b/test/transform/resource/before/DelegateOnGetter.java
@@ -0,0 +1,18 @@
+import lombok.Delegate;
+import lombok.Getter;
+
+class DelegateOnGetter {
+
+ @Delegate @Getter(lazy=true) private final Bar bar = new Bar() {
+ public void setList(java.util.ArrayList<String> list) {
+ }
+ public int getInt() {
+ return 42;
+ }
+ };
+
+ private interface Bar {
+ void setList(java.util.ArrayList<java.lang.String> list);
+ int getInt();
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/DelegateOnGetterNone.java b/test/transform/resource/before/DelegateOnGetterNone.java
new file mode 100644
index 00000000..f9642e6b
--- /dev/null
+++ b/test/transform/resource/before/DelegateOnGetterNone.java
@@ -0,0 +1,14 @@
+import lombok.AccessLevel;
+import lombok.Delegate;
+import lombok.Getter;
+
+@Getter
+class DelegateOnGetterNone {
+
+ @Delegate @Getter(AccessLevel.NONE) private final Bar bar;
+
+ private interface Bar {
+ void setList(java.util.ArrayList<java.lang.String> list);
+ int getInt();
+ }
+}
diff --git a/test/transform/resource/before/DelegateOnMethods.java b/test/transform/resource/before/DelegateOnMethods.java
new file mode 100644
index 00000000..1606e18c
--- /dev/null
+++ b/test/transform/resource/before/DelegateOnMethods.java
@@ -0,0 +1,11 @@
+import lombok.Delegate;
+
+abstract class DelegateOnMethods {
+
+ @Delegate
+ public abstract Bar getBar();
+
+ public static interface Bar {
+ void bar(java.util.ArrayList<java.lang.String> list);
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/before/GetterNone.java b/test/transform/resource/before/GetterNone.java
new file mode 100644
index 00000000..8497e4fc
--- /dev/null
+++ b/test/transform/resource/before/GetterNone.java
@@ -0,0 +1,8 @@
+import lombok.AccessLevel;
+import lombok.Getter;
+
+@Getter
+class GetterNone {
+ int i;
+ @Getter(AccessLevel.NONE) int foo;
+} \ No newline at end of file