Reputation: 1339
I have a class MyDestClass where I need to reference a field of MySourceClass in Javadoc, but I am getting the above warning.
MySourceClass
public class MySourceClass extends SomeClass<P, Q> {
public static final String REFFERED = "REFFERED_STRING";
}
MyDestClass
public class MyDestClass extends SomeOtherClass<P, Q> {
/**
* Some comment.
* @see {@link source.package.MySourceClass#REFFERED MySourceClass#REFFERED}
*/
private BigDecimal destLocal;
}
Here the Javadoc as seen in eclipse is correct. It also takes me to the document of REFFERED
but I am getting a warning.
Upvotes: 1
Views: 1347
Reputation: 1339
OK, I got the solution to this.
@see
& @link
cannot be used simultaneously
The syntax as given in the documentation is
@see package.class#member label
http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#see
Upvotes: 4