Javadoc reuse predefined text -
is possible somehow create like:
/** #define common_note_1="this note want re-use in several places" */ int vara; /** variable (common_note_1) */ int varb; /** variable b (common_note_1) */
some suggested 3 years ago may not been possible know if possible in modern age?
if still not possible, there suggestions use c preprocessor. idea if c preprocessor can integrated intellij? or happy python script automatically executed before compilation. know intelli j can configured run ant before compilation. if ready made solution take well. not want write/modify ant script myself.
you can follows:
/** note want re-use in several places */ static final int dummy; ... /** variable see {@link #dummy common_note}. */ int vara; /** variable b see {@link #dummy common_note}. */ int varb; /** variable b (common_note_1) */
this creates link in documentation when pressed lead common doc. won't show inline though. depending on how long common note might take more writing duplicating note, easier maintain.
Comments
Post a Comment