diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-06-10 10:18:15 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2020-06-11 21:19:23 +0200 |
commit | a2941041d4d4b3db2a12a38212226f36c11219ab (patch) | |
tree | d0e313ad808cf21b5072dbfa3eb59f88ea907a6f /test/transform/resource/before | |
parent | 51216bed0e723598fa26677ffc3ea0c8d2c3150d (diff) | |
download | lombok-a2941041d4d4b3db2a12a38212226f36c11219ab.tar.gz lombok-a2941041d4d4b3db2a12a38212226f36c11219ab.tar.bz2 lombok-a2941041d4d4b3db2a12a38212226f36c11219ab.zip |
[fixes #2481] Copy constructor javadoc to builder methods
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/BuilderConstructorJavadoc.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/transform/resource/before/BuilderConstructorJavadoc.java b/test/transform/resource/before/BuilderConstructorJavadoc.java new file mode 100644 index 00000000..ebbd473f --- /dev/null +++ b/test/transform/resource/before/BuilderConstructorJavadoc.java @@ -0,0 +1,35 @@ +import java.util.List; + +class BuilderConstructorJavadoc<T> { + /** + * This is a comment + * + * @param basic tag is moved to the setter + * @param multiline a param comment + * can be on multiple lines and can use + * {@code @code} or <code>tags</code> + * @param predef don't copy this one + * @param predefWithJavadoc don't copy this one + */ + @lombok.Builder + BuilderConstructorJavadoc(int basic, int multiline, int predef, int predefWithJavadoc) { + + } + + public static class BuilderConstructorJavadocBuilder<T> { + public BuilderConstructorJavadocBuilder<T> predef(final int x) { + this.predef = x; + return this; + } + + /** + * This javadoc remains untouched. + * @param x 1/100 of the thing + * @return the updated builder + */ + public BuilderConstructorJavadocBuilder<T> predefWithJavadoc(final int x) { + this.predefWithJavadoc = x; + return this; + } + } +} |