mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-17 02:14:16 +00:00
[fixes #2481] Copy constructor javadoc to builder methods
This commit is contained in:
1 parent
51216bed0e
commit
a2941041d4
4 files changed
+183
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user