joffrey-bion / livedoc

A not-so-annotation-based documentation generator for REST and websocket services
MIT License
4 stars 2 forks source link

Use field Javadoc for type properties descriptions #100

Closed joffrey-bion closed 6 years ago

joffrey-bion commented 6 years ago

There are 3 places where we can find a user-written description about a property:

  1. the field's javadoc comment
  2. the getter's javadoc return tag value
  3. the getter's javadoc comment

Usually, the description of the field, if present, is worded in a more suitable way than the description of the getter: "The foo of this bar" VS "Gets the foo of this bar". Similarly, the @return tag of the javadoc of the getter is usually more suitable than the method description.

For this reason, I believe it would be nice to get the information from the first available one of these 3 places, in the order they are listed above.