I was wondering if there is any valid reason why javadoc does not support inheritedDoc on constructors
. Suppose I have
class A
{
/**
* Constructor of A
*/
A(){}
/**
* Does something
*/
public void method(){}
}
class B extends A
{
/**
* {@inheritDoc}
*/
B(){ super();}
/**
* {@inheritDoc}
*/
public void method(){}
}
For the method method
, I could inherit the javadoc, but why the same cannot be applied for constructors
? The javadoc does not get inherited unless I use the inheritDoc tag, which means I am well aware that I would want to reuse the documentation. What should prevent me from doing so for the constructors
?