aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/Accessors.java2
-rw-r--r--test/transform/resource/after-ecj/AccessorsCascade.java43
-rw-r--r--test/transform/resource/after-ecj/AccessorsMakeFinal.java13
-rw-r--r--test/transform/resource/after-ecj/AccessorsMakeFinalLombokConfig.java9
-rw-r--r--test/transform/resource/after-ecj/AccessorsNoParamWarning.java18
5 files changed, 84 insertions, 1 deletions
diff --git a/test/transform/resource/after-ecj/Accessors.java b/test/transform/resource/after-ecj/Accessors.java
index cdc7b146..149d16f9 100644
--- a/test/transform/resource/after-ecj/Accessors.java
+++ b/test/transform/resource/after-ecj/Accessors.java
@@ -16,7 +16,7 @@ class AccessorsFluent {
}
@lombok.experimental.Accessors(fluent = true) @lombok.Getter class AccessorsFluentOnClass {
private @lombok.Setter String fieldName = "";
- private @lombok.experimental.Accessors String otherFieldWithOverride = "";
+ private @lombok.experimental.Accessors(fluent = false) String otherFieldWithOverride = "";
AccessorsFluentOnClass() {
super();
}
diff --git a/test/transform/resource/after-ecj/AccessorsCascade.java b/test/transform/resource/after-ecj/AccessorsCascade.java
new file mode 100644
index 00000000..cacd338f
--- /dev/null
+++ b/test/transform/resource/after-ecj/AccessorsCascade.java
@@ -0,0 +1,43 @@
+@lombok.experimental.Accessors(chain = true) class AccessorsOuter {
+ class AccessorsInner1 {
+ private @lombok.experimental.Accessors(prefix = "z") @lombok.Setter String zTest3;
+ AccessorsInner1() {
+ super();
+ }
+ /**
+ * @return {@code this}.
+ */
+ public @java.lang.SuppressWarnings("all") AccessorsOuter.AccessorsInner1 setTest3(final String zTest3) {
+ this.zTest3 = zTest3;
+ return this;
+ }
+ }
+ @lombok.experimental.Accessors(chain = false) class AccessorsInner2 {
+ private @lombok.Setter String fTest4;
+ AccessorsInner2() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") void setTest4(final String fTest4) {
+ this.fTest4 = fTest4;
+ }
+ }
+ private @lombok.Setter String fTest;
+ private @lombok.experimental.Accessors(prefix = "z") @lombok.Setter String zTest2;
+ AccessorsOuter() {
+ super();
+ }
+ /**
+ * @return {@code this}.
+ */
+ public @java.lang.SuppressWarnings("all") AccessorsOuter setTest(final String fTest) {
+ this.fTest = fTest;
+ return this;
+ }
+ /**
+ * @return {@code this}.
+ */
+ public @java.lang.SuppressWarnings("all") AccessorsOuter setTest2(final String zTest2) {
+ this.zTest2 = zTest2;
+ return this;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/AccessorsMakeFinal.java b/test/transform/resource/after-ecj/AccessorsMakeFinal.java
new file mode 100644
index 00000000..c8ac4bbd
--- /dev/null
+++ b/test/transform/resource/after-ecj/AccessorsMakeFinal.java
@@ -0,0 +1,13 @@
+@lombok.experimental.Accessors(makeFinal = true) class AccessorsMakeFinal1 {
+ private @lombok.Setter @lombok.experimental.Accessors(fluent = true) String test;
+ AccessorsMakeFinal1() {
+ super();
+ }
+ /**
+ * @return {@code this}.
+ */
+ public final @java.lang.SuppressWarnings("all") AccessorsMakeFinal1 test(final String test) {
+ this.test = test;
+ return this;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/AccessorsMakeFinalLombokConfig.java b/test/transform/resource/after-ecj/AccessorsMakeFinalLombokConfig.java
new file mode 100644
index 00000000..f7c411e3
--- /dev/null
+++ b/test/transform/resource/after-ecj/AccessorsMakeFinalLombokConfig.java
@@ -0,0 +1,9 @@
+class AccessorsMakeFinalLombokConfig {
+ private @lombok.Setter String test;
+ AccessorsMakeFinalLombokConfig() {
+ super();
+ }
+ public final @java.lang.SuppressWarnings("all") void setTest(final String test) {
+ this.test = test;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/AccessorsNoParamWarning.java b/test/transform/resource/after-ecj/AccessorsNoParamWarning.java
new file mode 100644
index 00000000..e5d2d905
--- /dev/null
+++ b/test/transform/resource/after-ecj/AccessorsNoParamWarning.java
@@ -0,0 +1,18 @@
+@lombok.experimental.Accessors(fluent = true) class AccessorsNoParams {
+ private @lombok.Getter @lombok.experimental.Accessors String otherFieldWithOverride = "";
+ AccessorsNoParams() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") String otherFieldWithOverride() {
+ return this.otherFieldWithOverride;
+ }
+}
+@lombok.experimental.Accessors class AccessorsNoParams2 {
+ private @lombok.Setter boolean foo;
+ AccessorsNoParams2() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") void setFoo(final boolean foo) {
+ this.foo = foo;
+ }
+} \ No newline at end of file