Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I workaround the new restriction in 1.4 that HTML tags cannot be used around parameter names?

0
0 Posted

How do I workaround the new restriction in 1.4 that HTML tags cannot be used around parameter names?

0
0

Prior to 1.4, the Javadoc tool support HTML around parameter names in a method comment: /** * @param values the value to get */ public void setValue(int value) { } Now that the standard doclet supports taglets, if a user wants all parameter names to be italic or bold, in the long run it would make more sense for them to write a taglet to do that, as it eliminates having to type HTML tags for every parameter. The the above comment would look like: /** * @param values the value to get */ public void setValue(int value) { } However, if users don’t want to change existing source code, they can use this ParamTaglet which allows the use of HTML around parameter names. Put the compiled class in a directory named /com/sun/tools/doclets/standard/tags and then use these options to javadoc: -tagletpath -taglet com.sun.tools.doclets.standard.tags.ParamTaglet This taglet will override the built-in ParamTaglet.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123