diff --git a/src/xdocs/writingjavadocchecks.xml.vm b/src/xdocs/writingjavadocchecks.xml.vm
index dc312b43e..11597baa6 100644
--- a/src/xdocs/writingjavadocchecks.xml.vm
+++ b/src/xdocs/writingjavadocchecks.xml.vm
@@ -66,19 +66,17 @@ public class MyClass {
- To start implementing new Check create new class and extend AbstractJavadocCheck. It has two abstract methods you should implement:
+ To start implementing new Check create new class and extend AbstractJavadocCheck. It has two abstract methods you should implement:
- In Javadoc comment every whitespace matters, so parse tree contains whitespace nodes (WS javadoc token type).
- So do CHAR javadoc token that presents single character. The only redundancy Javadoc tree has because of this is that TEXT node
- consists of CHAR and WS nodes which is useless, but it is implementation nuance. (In future we will try to resolve this).
+ In Javadoc comment every whitespace matters, so parse tree contains whitespace nodes (WS javadoc token type).
+ So do CHAR javadoc token that presents single character. The only redundancy Javadoc tree has because of this is that TEXT node consists of CHAR and WS nodes which is useless, but it is implementation nuance. (In future we will try to resolve this).
-
The problem is that Java grammar is old one and uses ANTLR v2, while Javadoc grammar uses ANTLR v4. Because of that, these two grammars and their trees are not compatible. - Java AST consists of DetailAST objects, while Javadoc AST consists of DetailNode objects. + Java AST consists of DetailAST objects, while Javadoc AST consists of DetailNode objects.
@@ -110,7 +108,7 @@ public class MyClass { } ]]>Command:
-Output:
Command:
-Output:
- For example, to write a JavadocCheck that verifies @param tags in Javadoc comment of a method definition, you also need all method's parameter names. To get method definition AST you should access main DetailAST tree throuth block comment AST. For this purpose use getBlockCommentAst() method that returns DetailAST node. + For example, to write a JavadocCheck that verifies @param tags in Javadoc comment of a method definition, you also need all method's parameter names. To get method definition AST you should access main DetailAST tree throuth block comment AST. For this purpose use getBlockCommentAst() method that returns DetailAST node.
Example: @@ -371,7 +369,7 @@ JAVADOC ->
First
\r\nSecond