Hi guys,
I have a plan to migrate my project with Lombok because my POJOs don't
have any special logics in there and want to attach @ToString and
@EqualsAndHashCode. Of course, this is not good practice i think. I
just want to reduce trivial code blocks from my project.
However, I really want to insert method-doc in my POJO classes.
Because some attributes of my class have to represent that what this
attribute means. But I couldn't find any solutions with lombok so far.
An approach to solve this issue what I made is to change modifiers of
fields from private to protected and wrote field-doc like below..
/**
* URL of user's profile picture. It can be '
http://foo/bar/
default.png' if the user doesn't set their picture.
*/
@Getter protected java.net.URL profilePicture;
and ran javadoc and got a document.
But it is not beauty I think. And I don't want to insert '-private'
option to run with javadoc.
Any ideas or advices?