From e5d3d10a2acd7fe16f987dfa70067f23d071407b Mon Sep 17 00:00:00 2001 From: Baratali Izmailov Date: Tue, 26 Apr 2016 23:09:32 +0100 Subject: [PATCH] Issue #410: Wiki-page. What is Javdoc comment. (#3129) --- src/xdocs/writingjavadocchecks.xml.vm | 104 +++++++++++++++++++++++++- 1 file changed, 102 insertions(+), 2 deletions(-) diff --git a/src/xdocs/writingjavadocchecks.xml.vm b/src/xdocs/writingjavadocchecks.xml.vm index b32e13098..9b0ac3543 100644 --- a/src/xdocs/writingjavadocchecks.xml.vm +++ b/src/xdocs/writingjavadocchecks.xml.vm @@ -21,9 +21,19 @@ +
+

+ Javadoc comment is multiline comment that starts with * character and placed under class definition, interface definition, enum definition, method definition or field definition. + The comment should be written in XHTML to be correctly processed by Checkstyle. This means that every HTML tag should have matching closed HTML tag or it is self-closed one (singlton tag). + The only exceptions are <p>, <li>, <tr>, <td>, <th>, <body>, <colgroup>, <dd>, <dt>, <head>, <html>, <option>, + <tbody>, <thead>, <tfoot> and Checkstyle won't show error about missing closing tag, however, it leads to broken XHTML structure and, therefore, + incorrect Abstract Syntax Tree of the Javadoc comment anyway. See examples at "HTML Code In Javadoc Comments" chapter. +

+
+

- To start implementing your own Check create new class and extend AbstractJavadocCheck. It has two abstract methods: + To start implementing your own Check create new class and extend AbstractJavadocCheck. It has two abstract methods: