From ad21a1573bab57c63ffd5b9867f8e19ac7f0c94b Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 23 Apr 2018 23:43:15 +0200 Subject: [annotation based ToString] hey.. we have annotation based ToString now, where you can include/exclude fields by annotating the fields. --- test/transform/resource/before/ToStringNewStyle.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/transform/resource/before/ToStringNewStyle.java (limited to 'test/transform/resource/before') diff --git a/test/transform/resource/before/ToStringNewStyle.java b/test/transform/resource/before/ToStringNewStyle.java new file mode 100644 index 00000000..7e436e51 --- /dev/null +++ b/test/transform/resource/before/ToStringNewStyle.java @@ -0,0 +1,15 @@ +import lombok.ToString; +@ToString +public class ToStringNewStyle { + @ToString.Include(name = "a") int b; + double c; + int f; + @ToString.Include(name = "e") int d; + @ToString.Include int f() { + return 0; + } + int g; + @ToString.Include(rank = -1) int h; + int i; + @ToString.Exclude int j; +} -- cgit