Hello Michiel!

Earlier I have, by experimenting, found that putting the @see first in
the javadoc comments, the warning about the argument disappears. In your
example, that would mean removing the text before the @see solves the
problem. I cannot reproduce it now. This is strange.

Eclipse supports this because we have the default comment created for
inherited methods to:
/**
 * ${see_to_overwridden}
 */
I see now that the new Eclipse setup and especially the
eclipse-argo-codetemplates.xml does not include this like it was
explained in the Cookbook
(http://argouml-downloads.tigris.org/nonav/argouml-0.20/cookbook-0.20.pd
f 9.7.2). I will fix that.

I don't understand how
  * @see inherited class#inheritedmethod(argument)
and
  * [EMAIL PROTECTED]
differ. They guess they mean very much the same thing. I have preferred
the first alternative because it works so well with Eclipse and
checkstyle.

When reading the classes that implement several interfaces in the
editor, it is occasionally useful to have it stated what interface this
method belongs to. That would be in favor of the first alternative.

When changing methods it is extra work to update the javadoc. That would
be in favor of the second alternative.

When you test the two alternatives in Eclipse/checkstyle, do the
[EMAIL PROTECTED] behave better than the @see x.y.z?

        /Linus

> -----Original Message-----
> From: Michiel van der Wulp [mailto:[EMAIL PROTECTED]
> Sent: den 25 maj 2006 12:17
> To: [email protected]
> Subject: Re: [argouml-dev] Coding conventions
> 
> Hi Linus,
> 
> MVW:
> > Currently, it always gives a few warnings for every function with
> > parameters, and I do not find any way to suppress these warnings.
> > So I try not to look at them, and switched off checkstyle warnings,
> > since they drown in the useless ones...
> 
> Linus:
> > It is unlucky that you are feeling that Eclipse warns too much. I
don't
> > understand from your description, where your warnings come from.
> 
> 
> Digging into the problem I found out that CheckStyle _IS_ the problem.
> I get warnings for every method like this one:
>     /**
>      * Called after the notation default property gets changed.
>      *
>      * @see
>
java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChan
ge
> Event)
>      */
>     public void propertyChange(PropertyChangeEvent pce) {
>     ....
> 
> And, after reading
> http://checkstyle.sourceforge.net/config_javadoc.html#JavadocMethod
> I found out that I can suppress the warnings by:
> 
>     /**
>      * Called after the notation default property gets changed.
>      *
>      * [EMAIL PROTECTED]
>      */
>     public void propertyChange(PropertyChangeEvent pce) {
>     ....
> 
> ...or by commenting out the
> <module name="JavadocMethod">
> 
> <property name="scope" value="protected"/>
> 
> <property name="allowUndeclaredRTE" value="true"/>
> 
> </module>
> 
> in the checkstyle_argouml.xml file - which is not desired.
> 
> I like the [EMAIL PROTECTED] solution for esthetical reasons, but it is
quite
> some work to go adapt everywhere...
> 
> What shall we do?
> 
> Regards,
> Michiel
> 
> 
> 
> 
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.7.1/347 - Release Date:
24/05/2006
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to