tags:

views:

202

answers:

2

Hi. I have commented my java source code with javadoc using tags like {@see myPackage.MyClass}.

I have to generate javadoc with ant from terminal but I have got this warning:

[javadoc] src/calendar/annotation/DataType.java:11: warning - Tag @see cannot be used in inline documentation.  It can only be used in the following types of documentation: overview, package, class/interface, constructor, field, method.

In build.xml is this line:

<javadoc  sourcepath="${sourceDir}" destdir="${docDir}" windowtitle="MyProject" />

Can anybody help me, please?

Edit:

I am using it correctly. For example I have

/**
 * <p>Metoda provede požadovaný dotaz do databáze za použití předaných parametrů.
 * Pokud jsou parametry nedostatečně nedefinované, SQL dotaz neexistuje nebo nastane
 * problém s komunikací, dojde k vygenerování {@see calendar.exception.LoadException}.
 * Pokud žádné entity neodpovídají požadavku, dochází k vrácení prázdného seznamu.
 * V případě, že nějaké entity odpovídají požadovanému pravidlu, jsou načteny především ty,
 * které již jsou definovány v persistenční vrstvě. Pokud tam entity nejsou zavedeny, dochází
 * k jejich načtení z databáze.</p>
 * @param entityClass
 * @param query
 * @param params
 * @return
 * @throws calendar.exception.LoadException
 */
<EntityClass extends AbstractEntity> Collection<EntityClass> find( Class<EntityClass> entityClass, String query, Map<String, Object> params ) throws LoadException;
+1  A: 

In Datatype.java, you are using @see in a comment in your code in a place Javadoc does not allow. Specifically, it looks like you have something like:

/**
  *...@see...
  */
void foo() {
}

Where it should be

/**
  * ...
  * @see bla
 /*
 void foo() {
     ...
 }
Nathaniel Flath
I am using it correctly, I think. I have edited my question.
Gaim
The @see needs to be at the end of the comment, not in the middle
Nathaniel Flath
+1  A: 

Shouldn't that be @link instead of @see?

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#%7B%40link%7D

McDowell
thanks, now it's without warnings.
Gaim