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/DataPlain.java6
-rw-r--r--test/transform/resource/before/GetterOnMethod.java15
-rw-r--r--test/transform/resource/before/SetterOnMethod.java15
-rw-r--r--test/transform/resource/before/SetterOnParam.java15
-rw-r--r--test/transform/resource/before/SetterOnParamAndOnMethod.java3
5 files changed, 54 insertions, 0 deletions
diff --git a/test/transform/resource/before/DataPlain.java b/test/transform/resource/before/DataPlain.java
index 4151dd20..e2469d44 100644
--- a/test/transform/resource/before/DataPlain.java
+++ b/test/transform/resource/before/DataPlain.java
@@ -19,3 +19,9 @@ final class Data4 extends java.util.Timer {
super();
}
}
+@Data
+class Data5 {
+}
+@Data
+final class Data6 {
+}
diff --git a/test/transform/resource/before/GetterOnMethod.java b/test/transform/resource/before/GetterOnMethod.java
new file mode 100644
index 00000000..38b498de
--- /dev/null
+++ b/test/transform/resource/before/GetterOnMethod.java
@@ -0,0 +1,15 @@
+import lombok.Getter;
+class GetterOnMethod {
+ @lombok.Getter(onMethod=@Deprecated) int i;
+ @lombok.Getter(onMethod={@java.lang.Deprecated}) int j;
+}
+@lombok.Getter(onMethod=@Deprecated)
+class GetterOnClassOnMethod {
+ int i;
+ int j;
+}
+@lombok.Getter(onMethod=@Deprecated)
+class GetterOnClassAndOnAField {
+ int i;
+ @lombok.Getter(onMethod={@java.lang.Deprecated}) int j;
+}
diff --git a/test/transform/resource/before/SetterOnMethod.java b/test/transform/resource/before/SetterOnMethod.java
new file mode 100644
index 00000000..d680b34b
--- /dev/null
+++ b/test/transform/resource/before/SetterOnMethod.java
@@ -0,0 +1,15 @@
+import lombok.Setter;
+class SetterOnMethod {
+ @lombok.Setter(onMethod=@Deprecated) int i;
+ @lombok.Setter(onMethod={@java.lang.Deprecated}) int j;
+}
+@lombok.Setter(onMethod=@Deprecated)
+class SetterOnClassOnMethod {
+ int i;
+ int j;
+}
+@lombok.Setter(onMethod=@Deprecated)
+class SetterOnClassAndOnAField {
+ int i;
+ @lombok.Setter(onMethod={@java.lang.Deprecated}) int j;
+}
diff --git a/test/transform/resource/before/SetterOnParam.java b/test/transform/resource/before/SetterOnParam.java
new file mode 100644
index 00000000..12b90696
--- /dev/null
+++ b/test/transform/resource/before/SetterOnParam.java
@@ -0,0 +1,15 @@
+import lombok.Setter;
+class SetterOnParam {
+ @lombok.Setter(onParam=@SuppressWarnings("all")) int i;
+ @lombok.Setter(onParam={@java.lang.SuppressWarnings("all")}) int j;
+}
+@lombok.Setter(onParam=@SuppressWarnings("all"))
+class SetterOnClassOnParam {
+ int i;
+ int j;
+}
+@lombok.Setter(onParam=@SuppressWarnings("all"))
+class SetterOnClassAndOnAFieldParam {
+ int i;
+ @lombok.Setter(onParam={@java.lang.SuppressWarnings("all")}) int j;
+}
diff --git a/test/transform/resource/before/SetterOnParamAndOnMethod.java b/test/transform/resource/before/SetterOnParamAndOnMethod.java
new file mode 100644
index 00000000..b223fea8
--- /dev/null
+++ b/test/transform/resource/before/SetterOnParamAndOnMethod.java
@@ -0,0 +1,3 @@
+class SetterOnParamAndOnMethod {
+ @lombok.Setter(onMethod=@Deprecated,onParam=@SuppressWarnings("all")) int i;
+}