Add test coverage to HtmlTag in Javadoc checks. #1308
This commit is contained in:
parent
12fc9a2b54
commit
787bf0582b
1
pom.xml
1
pom.xml
|
|
@ -1152,7 +1152,6 @@
|
|||
<regex><pattern>.*.checks.javadoc.AbstractJavadocCheck</pattern><branchRate>90</branchRate><lineRate>93</lineRate></regex>
|
||||
<regex><pattern>.*.checks.javadoc.AbstractJavadocCheck\$.*</pattern><branchRate>50</branchRate><lineRate>68</lineRate></regex>
|
||||
<regex><pattern>.*.checks.javadoc.AtclauseOrderCheck</pattern><branchRate>88</branchRate><lineRate>88</lineRate></regex>
|
||||
<regex><pattern>.*.checks.javadoc.HtmlTag</pattern><branchRate>75</branchRate><lineRate>90</lineRate></regex>
|
||||
<regex><pattern>.*.checks.javadoc.JavadocMethodCheck</pattern><branchRate>90</branchRate><lineRate>96</lineRate></regex>
|
||||
<regex><pattern>.*.checks.javadoc.JavadocPackageCheck</pattern><branchRate>80</branchRate><lineRate>95</lineRate></regex>
|
||||
<regex><pattern>.*.checks.javadoc.JavadocParagraphCheck</pattern><branchRate>92</branchRate><lineRate>100</lineRate></regex>
|
||||
|
|
|
|||
|
|
@ -57,8 +57,7 @@ class HtmlTag {
|
|||
*/
|
||||
HtmlTag(String id, int lineNo, int position, boolean closedTag,
|
||||
boolean incomplete, String text) {
|
||||
this.id = !"".equals(id) && id.charAt(0) == '/'
|
||||
? id.substring(1) : id;
|
||||
this.id = id;
|
||||
this.lineNo = lineNo;
|
||||
this.position = position;
|
||||
this.text = text;
|
||||
|
|
|
|||
|
|
@ -338,4 +338,13 @@ public class InputJavadocStyleCheck
|
|||
public void method21() {
|
||||
}
|
||||
|
||||
/**
|
||||
* First sentence.
|
||||
* <
|
||||
* /a>
|
||||
*/
|
||||
void tagClosedInNextLine() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue