user2232857
user2232857

Reputation: 91

I use Lombok project but getter's and setter's don't have JavaDoc

I use Lombok project but getter's and setter's don't have JavaDoc.

How can i activate this option?

Upvotes: 9

Views: 2509

Answers (1)

Roel Spilker
Roel Spilker

Reputation: 34562

There is an inititial implementation in the 0.12.0 release. By default the whole content form the javadoc on the field will be copied to both the getter and the setter. Getters will get the return bit; setters the param bit. Those will be removed from the javadoc on the field. Using sections you can even specify different getter/setter javadoc.

This only works when you delombok the code before generating javadoc, and will probably never work in eclipse.

For the current syntax, please check the feature requests documentation.

Full Disclosure: I am one of the Project Lombok developers.

Upvotes: 8

Related Questions