diff options
author | Roel Spilker <r.spilker@gmail.com> | 2018-10-15 23:19:55 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-10-15 23:19:55 +0200 |
commit | 89294fe03c4257e13971dd9db3738511dc01e433 (patch) | |
tree | da411698bb6f0b35ba74a5c5565ac5624764a3a7 /test/transform/resource/after-ecj/ToStringExplicitInclude.java | |
parent | 7ee4ebb1a5cd2a002dc522604303b1291a46bddb (diff) | |
download | lombok-89294fe03c4257e13971dd9db3738511dc01e433.tar.gz lombok-89294fe03c4257e13971dd9db3738511dc01e433.tar.bz2 lombok-89294fe03c4257e13971dd9db3738511dc01e433.zip |
add tests to ensure onlyExplicitlyIncluded means nothing if no fields are annotated. Fixes #1772
Diffstat (limited to 'test/transform/resource/after-ecj/ToStringExplicitInclude.java')
-rw-r--r-- | test/transform/resource/after-ecj/ToStringExplicitInclude.java | 9 |
1 files changed, 9 insertions, 0 deletions
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()"; + } +} |