From 89294fe03c4257e13971dd9db3738511dc01e433 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 15 Oct 2018 23:19:55 +0200 Subject: add tests to ensure onlyExplicitlyIncluded means nothing if no fields are annotated. Fixes #1772 --- test/transform/resource/after-ecj/ToStringExplicitInclude.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/transform/resource/after-ecj/ToStringExplicitInclude.java (limited to 'test/transform/resource/after-ecj/ToStringExplicitInclude.java') diff --git a/test/transform/resource/after-ecj/ToStringExplicitInclude.java b/test/transform/resource/after-ecj/ToStringExplicitInclude.java new file mode 100644 index 00000000..adb3109e --- /dev/null +++ b/test/transform/resource/after-ecj/ToStringExplicitInclude.java @@ -0,0 +1,9 @@ +@lombok.ToString(onlyExplicitlyIncluded = true) class ToStringExplicitInclude { + int x; + ToStringExplicitInclude() { + super(); + } + public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { + return "ToStringExplicitInclude()"; + } +} -- cgit