Skip to content

Commit

Permalink
HSEARCH-3478 Sonar: "switch" statements should have "default" clauses
Browse files Browse the repository at this point in the history
... the rule also accepts switches where we define a case for each enum
constants.
  • Loading branch information
yrodiere committed Feb 8, 2019
1 parent ec33968 commit 178999f
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -200,6 +200,10 @@ private void appendIndent() {
builder.append( style.indentInListNoBulletPoint );
}
break;
case UNNAMED_ENTRY:
case NAMED_ENTRY:
// No indent for these
break;
}
}
grandParent = parent;
Expand Down

0 comments on commit 178999f

Please sign in to comment.