Skip to content

Commit

Permalink
Issue checkstyle#12441: Resolve Pitest suppression for RightCurlyCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
arinmodi committed Nov 22, 2022
1 parent 55e09e5 commit 0aa5958
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -462,11 +462,11 @@ private static boolean isBlockAloneOnSingleLine(Details details) {
DetailAST nextToken = details.nextToken;

while (nextToken != null && nextToken.getType() == TokenTypes.LITERAL_ELSE) {
nextToken = Details.getNextToken(nextToken);

}

if (nextToken != null && nextToken.getType() == TokenTypes.DO_WHILE) {
final DetailAST doWhileSemi = nextToken.getParent().getLastChild();
final DetailAST doWhileSemi = nextToken.getParent();
nextToken = Details.getNextToken(doWhileSemi);
}

Expand Down Expand Up @@ -620,7 +620,7 @@ private static Details getDetailsForIfElse(DetailAST ast) {

if (nextToken == null) {
shouldCheckLastRcurly = true;
nextToken = getNextToken(ast);
nextToken = ast;
lcurly = ast.getLastChild();
}
else {
Expand Down

0 comments on commit 0aa5958

Please sign in to comment.