How do I make a reference, in javadoc, to a method parameter, so that the reference can be refactored ?
For example:
public class A {
private int field;
/**
* @param p
* {@link #field} is initialized using the value of p.
*/
void foo(int p)
{
//...
}
}
If I rename parameter p in the above code, I want
"...using the value of p"
text to change accordingly (just as renaming field will change {@link #field}
).
I read this old post, and some more sources, but could not find a way to do it.
Does javadoc support it ?