1

I'm writing javadoc for a class and a particular paragraph has to be backed by an external link. My idea is to put this link in @see tag at the end of the class' javadoc and at the same time link the paragraph to the @see tag somehow, but I don't know how to do this. Maybe my approach is wrong and I should just include the link in the particular paragraph where is relevant instead of merging it with the rest of the @see tags section.

1 Answer 1

1

the @seeTag is to reference other classes. If you want a simple html-link to the internet use a html link in your documentation text:

/** * here comes a link <a href="http://google.com">http://google.com</a> */ 

you can also do this with the @see Tag infront of the html link to get the link listed at the bottom of your class.

Sign up to request clarification or add additional context in comments.

2 Comments

I think it's not only for classes. You can see it here: docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/… It talks about a "reference". In any case, I think I just repeated the link at the see section and in the appropriate part of the documentation.
right. I wanted to mention that @see only creates autogenerated links on classes or methods and not on web-links. Therefore you need to add the `<a href="...">

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.