-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] add javadoc to fields and props of a java record #3453
Comments
If the javadoc tool or your IDE does not support something like this, I would recommend filling an issue in the appropriate issue tracker. There is no reason lombok should modify a record without a lombok annotation. |
@Rawi01 I think, you did not understand this issue. It should not modify a record, it only should provide the javadoc to its "getters". Actually, records automatically generate the "getters" but does not have a javadoc for that field. Lombok also associates the javadoc for getter/setters of a common class if the field has a javadoc defined. That's what I am talking about. |
But I also think that the IDE (in this case Eclipse) should support such things out of the box. |
Adding comments is some kind of modification. Lombok can do that, yes, but shouldn't that be part of the java standard/IDE? According to this stackoverflow post it works in Github only know open or closed as status but I added a label to the issue for you 😃 |
@Rawi01 Thanks! I didn't know that. That is perfectly sufficient 👍 |
Describe the feature
Imagine something like this:
It would be nice if lombok could add the javadoc based on the constructor's javadoc. For example, when accessing
user.firstname()
, the javadoc defined in the constructor should be used. Is this possible?Actually, lombok uses the javadoc defined in fields when we use getter/setter-methods generated by
@Getter/@Setter
. Something like this would be good for Javarecord
as well.The text was updated successfully, but these errors were encountered: