#436 Tiger doclet tag @code not honored

release_4.2
open
nobody
5
2014-02-09
2006-07-18
TOF
No

With the tiger release, SUN introduced the inline tag
{@code } which will be rendered verbatim into html by
javadoc.

Contents in this tag is not interpreted as html, but
treated like

, in order to allow things like
{@code Collection<String> myCollection = new
Set<String>();} to be rendered properly in HTML, while
not beeing a nuisance to enter in sourcecode.

But checkstyle persists to interpret <String> or any
template parameter as unbalanced tag.

Checking HTML-tag balance can be switched of globaly,
but unfortunately not specific for certain Javadoc Tags.

Discussion

  • Ralf
    Ralf
    2009-02-25

    This problem is still present in the current Checkstyle 5.0.

    Also note, that {@literal } is to be handled like {@code }.

     
  • Roman Ivanov
    Roman Ivanov
    2014-02-06

    • labels: Tests --> Tests, JavaDoc