aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-12-21 01:53:10 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-12-21 01:53:30 +0100
commit6d2a474e55db3937eafa5a6d089efd5ba75a62bf (patch)
tree0336d1388090961f8c52ff4999493f7ecb5a5820 /test/transform/resource
parentd71a880d7f9a207e4a121d0b98b54018e9403197 (diff)
downloadlombok-6d2a474e55db3937eafa5a6d089efd5ba75a62bf.tar.gz
lombok-6d2a474e55db3937eafa5a6d089efd5ba75a62bf.tar.bz2
lombok-6d2a474e55db3937eafa5a6d089efd5ba75a62bf.zip
[fixes #2849] Make ToString's onlyExplicitlyIncluded a config key.
Diffstat (limited to 'test/transform/resource')
-rw-r--r--test/transform/resource/after-delombok/ToStringExplicitIncludeConf.java9
-rw-r--r--test/transform/resource/after-ecj/ToStringExplicitIncludeConf.java10
-rw-r--r--test/transform/resource/before/ToStringExplicitIncludeConf.java7
3 files changed, 26 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ToStringExplicitIncludeConf.java b/test/transform/resource/after-delombok/ToStringExplicitIncludeConf.java
new file mode 100644
index 00000000..a1bd8ed9
--- /dev/null
+++ b/test/transform/resource/after-delombok/ToStringExplicitIncludeConf.java
@@ -0,0 +1,9 @@
+class ToStringExplicitIncludeConf {
+ int x;
+ int y;
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "ToStringExplicitIncludeConf(" + this.y + ")";
+ }
+}
diff --git a/test/transform/resource/after-ecj/ToStringExplicitIncludeConf.java b/test/transform/resource/after-ecj/ToStringExplicitIncludeConf.java
new file mode 100644
index 00000000..a2b801c6
--- /dev/null
+++ b/test/transform/resource/after-ecj/ToStringExplicitIncludeConf.java
@@ -0,0 +1,10 @@
+@lombok.ToString class ToStringExplicitIncludeConf {
+ int x;
+ @lombok.ToString.Include int y;
+ ToStringExplicitIncludeConf() {
+ super();
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (("ToStringExplicitIncludeConf(y=" + this.y) + ")");
+ }
+}
diff --git a/test/transform/resource/before/ToStringExplicitIncludeConf.java b/test/transform/resource/before/ToStringExplicitIncludeConf.java
new file mode 100644
index 00000000..ee49c754
--- /dev/null
+++ b/test/transform/resource/before/ToStringExplicitIncludeConf.java
@@ -0,0 +1,7 @@
+//CONF: lombok.toString.onlyExplicitlyIncluded = true
+
+@lombok.ToString
+class ToStringExplicitIncludeConf {
+ int x;
+ @lombok.ToString.Include int y;
+}