I use Lombok project but getter's and setter's don't have JavaDoc.
How can i activate this option?
You can annotate any field with @Getter and/or @Setter , to let lombok generate the default getter/setter automatically. A default getter simply returns the field, and is named getFoo if the field is called foo (or isFoo if the field's type is boolean ).
After you have created the variables in the class, right click, select Source, select Generate Getters and Setters.
You may use lombok - to manually avoid getter and setter method. But it create by itself. The using of lombok significantly reduces a lot number of code.
This access level lets us override the behavior of a @Getter, @Setter, or @Data annotation on a class. To override the access level, annotate the field or class with an explicit @Setter or @Getter annotation.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With