I don't want to write redundant javadoc comments. As you can see, @param x
is in a way redundant. Is there a javadoc markup to set a reference from @param x
in class B
to @param x
in class A
or am I allowed to just leave it out?
/**
* Class A constructor
*
* @param x position on x-axis
*/
public A(final int x) {
this.x = x;
}
/**
* Class B constructor
*
* @param x position on x-axis
* @param y position on y-axis
*/
public B(final int x, final int y) {
super(x);
this.y = y
}