Javadoc reuse for overloaded methods

I don’t know of any support, but, I would fully javadoc the method with the most arguments, and then refer to it in other javadoc like so. I think it’s sufficiently clear, and avoids redundancy.

 * {@code fruitType} defaults to {@link FruitType#Banana}.
 * @see Forest#addTree(int, Fruit, int)

Leave a Comment