Skip to content

Commit

Permalink
bug fixing issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
rpau committed Apr 4, 2016
1 parent 1ff9f7d commit 51aa7bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.walkmod</groupId>
<artifactId>walkmod-sonar-plugin</artifactId>
<version>1.1.5</version>
<version>1.1.6</version>
<url>https://github.com/walkmod/walkmod-sonar-plugin</url>
<licenses>
<license>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ public void visit(SwitchEntryStmt n, VisitorContext arg) {
List<Statement> statements = n.getStmts();
if (statements != null) {
if (statements.size() > 0 && !isBlockStmt(statements.get(0))) {
statements = new LinkedList<Statement>();
statements.add(createBlockStmt(statements));
n.setStmts(statements);
List<Statement> newStatements = new LinkedList<Statement>();
newStatements.add(createBlockStmt(statements));
n.setStmts(newStatements);
}
}
}
Expand Down

0 comments on commit 51aa7bd

Please sign in to comment.