Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Java by (2.6k points)

Is there a way to add references to one or more of a method's parameters from the method documentation body? Something like:

/**

 * When {@paramref a} is null, we rely on b for the discombobulation.

 *

 * @param a this is one of the parameters

 * @param b another param

 */

void foo(String a, int b)

{...}

1 Answer

0 votes
by (46k points)

As considerably as I can show after seeing the docs for Javadoc there is no so highlight.

Don't apply <code>foo</code> ; you can apply {@code foo}. This is particularly useful to understand when you apply to a general type so as {@code Iterator<String>} -- sure seems nicer than <code>Iterator&lt;String&gt;</code>, doesn't it!

Related questions

0 votes
1 answer
asked Jul 10, 2019 in Java by Krishna (2.6k points)
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...