mplushnikov / lombok-intellij-plugin

Lombok Plugin for IntelliJ IDEA
Apache License 2.0
3.11k stars 635 forks source link

Javadoc GETTER/SETTER sections not working on Android Studio #309

Open rfgamaral opened 7 years ago

rfgamaral commented 7 years ago

I have followed the documentation here: https://projectlombok.org/features/GetterSetter.html

Example:

/**
 * Age of the person.
 *
 * -- GETTER --
 * Returns the age of this person.
 *
 * @return The current value of this person's age.
 *
 * -- SETTER --
 * Changes the age of this person.
 *
 * @param age the new age for this person.
 */
@Getter @Setter
private int age;

And this is the result: getter setter

Am I doing something wrong? Is this issue related to Lombok itself and not the plugin?

Janmm14 commented 7 years ago

The lombok plugin just does not handle javadoc (yet) as far as I know.

rfgamaral commented 7 years ago

But shouldn't Lombok itself generate the individual getter/setter methods and copy/paste each Javadoc section to each of the methods? This way, the plugin wouldn't need to do a thing because IntelliJ would simply pick the documentation for each method.

Or am I misunderstanding something?

Janmm14 commented 7 years ago

Intellij does not execute any annotation processor (like lombok) when displaying javadoc or creating errors / warnings / etc.