Skip to content

Commit

Permalink
Issue checkstyle#7922: Resolve Pitest Issues - JavadocMethodCheck (1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sulkykookie authored and romani committed Apr 16, 2020
1 parent 2e8c277 commit 0294924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion .ci/pitest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ pitest-javadoc)
"AbstractJavadocCheck.java.html:<td class='covered'><pre><span class='survived'> beginJavadocTree(root);</span></pre></td></tr>"
"AbstractJavadocCheck.java.html:<td class='covered'><pre><span class='survived'> finishJavadocTree(root);</span></pre></td></tr>"
"AbstractJavadocCheck.java.html:<td class='covered'><pre><span class='survived'> javadocTokens.clear();</span></pre></td></tr>"
"JavadocMethodCheck.java.html:<td class='covered'><pre><span class='survived'> if (!currentClassName.isEmpty()) {</span></pre></td></tr>"
"JavadocMethodCheck.java.html:<td class='covered'><pre><span class='survived'> if (classInfo == null) {</span></pre></td></tr>"
"JavadocMethodCheck.java.html:<td class='covered'><pre><span class='survived'> child != null;</span></pre></td></tr>"
"JavadocMethodCheck.java.html:<td class='covered'><pre><span class='survived'> if (child.getType() == TokenTypes.TYPE_PARAMETER) {</span></pre></td></tr>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,7 @@ public final void leaveToken(DetailAST ast) {
|| ast.getType() == TokenTypes.ENUM_DEF) {
// perhaps it was inner class
final int dotIdx = currentClassName.lastIndexOf('$');
if (dotIdx == -1) {
// looks like a topmost class
currentClassName = "";
}
else {
currentClassName = currentClassName.substring(0, dotIdx);
}
currentClassName = currentClassName.substring(0, dotIdx);
currentTypeParams.pop();
}
else if (ast.getType() == TokenTypes.METHOD_DEF) {
Expand Down Expand Up @@ -1047,9 +1041,7 @@ private void processClass(DetailAST ast) {
final DetailAST ident = ast.findFirstToken(TokenTypes.IDENT);
String innerClass = ident.getText();

if (!currentClassName.isEmpty()) {
innerClass = "$" + innerClass;
}
innerClass = "$" + innerClass;
currentClassName += innerClass;
processTypeParams(ast);
}
Expand Down

0 comments on commit 0294924

Please sign in to comment.