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/Constructors.java4
-rw-r--r--test/transform/resource/before/GetterOnMethod.java7
-rw-r--r--test/transform/resource/before/GetterOnMethodErrors.java6
-rw-r--r--test/transform/resource/before/GetterOnMethodErrors2.java12
-rw-r--r--test/transform/resource/before/SetterOnMethodOnParam.java7
5 files changed, 36 insertions, 0 deletions
diff --git a/test/transform/resource/before/Constructors.java b/test/transform/resource/before/Constructors.java
index d3ed3504..0ab7b7f0 100644
--- a/test/transform/resource/before/Constructors.java
+++ b/test/transform/resource/before/Constructors.java
@@ -10,6 +10,10 @@
final int x;
String name;
}
+@lombok.RequiredArgsConstructor(onConstructor=@_(@Deprecated)) class RequiredArgsConstructorWithAnnotations {
+ final int x;
+ String name;
+}
@lombok.AllArgsConstructor class AllArgsConstructor1 {
final int x;
String name;
diff --git a/test/transform/resource/before/GetterOnMethod.java b/test/transform/resource/before/GetterOnMethod.java
new file mode 100644
index 00000000..558f3f64
--- /dev/null
+++ b/test/transform/resource/before/GetterOnMethod.java
@@ -0,0 +1,7 @@
+class GetterOnMethod {
+ @lombok.Getter(onMethod=@_(@Deprecated)) int i;
+ @lombok.Getter(onMethod=@_({@java.lang.Deprecated, @Test})) int j, k;
+
+ public @interface Test {
+ }
+}
diff --git a/test/transform/resource/before/GetterOnMethodErrors.java b/test/transform/resource/before/GetterOnMethodErrors.java
new file mode 100644
index 00000000..ae5d5b54
--- /dev/null
+++ b/test/transform/resource/before/GetterOnMethodErrors.java
@@ -0,0 +1,6 @@
+class PlaceFillerToMakeSurePositionIsRelevant {
+}
+@lombok.Getter(onMethod=@_(@Deprecated))
+class GetterOnMethodErrors {
+ private int test;
+}
diff --git a/test/transform/resource/before/GetterOnMethodErrors2.java b/test/transform/resource/before/GetterOnMethodErrors2.java
new file mode 100644
index 00000000..423183b9
--- /dev/null
+++ b/test/transform/resource/before/GetterOnMethodErrors2.java
@@ -0,0 +1,12 @@
+class GetterOnMethodErrors2 {
+ @lombok.Getter(onMethod=@_A_(@Deprecated)) private int bad1;
+ @lombok.Getter(onMethod=@_(5)) private int bad2;
+ @lombok.Getter(onMethod=@_({@Deprecated, 5})) private int bad3;
+ @lombok.Getter(onMethod=@_(bar=@Deprecated)) private int bad4;
+ @lombok.Getter(onMethod=@_) private int good1;
+ @lombok.Getter(onMethod=@_()) private int good2;
+ @lombok.Getter(onMethod=@_(value=@Deprecated)) private int good3;
+ @lombok.Getter(onMethod=@_(value={@Deprecated, @Test})) private int good4;
+ public @interface Test {
+ }
+}
diff --git a/test/transform/resource/before/SetterOnMethodOnParam.java b/test/transform/resource/before/SetterOnMethodOnParam.java
new file mode 100644
index 00000000..70f3dc8c
--- /dev/null
+++ b/test/transform/resource/before/SetterOnMethodOnParam.java
@@ -0,0 +1,7 @@
+class SetterOnMethodOnParam {
+ @lombok.Setter(onMethod=@_(@Deprecated)) int i;
+ @lombok.Setter(onMethod=@_({@java.lang.Deprecated, @Test}), onParam=@_(@Test)) int j, k;
+
+ public @interface Test {
+ }
+}