Skip to content

Commit

Permalink
Use List interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Pine committed Apr 6, 2024
1 parent 5617217 commit 8d56f57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ public <S> void visitCtSwitch(CtSwitch<S> switchStatement) {
//Visit Case
registerStatementLabel(caseStatement);
var caseExpressions = caseStatement.getCaseExpressions();
ArrayList<ControlFlowNode> caseExpressionNodes = new ArrayList<>();
List<ControlFlowNode> caseExpressionNodes = new ArrayList<>();
for (CtExpression<?> expression : caseExpressions) {
ControlFlowNode caseNode = new ControlFlowNode(expression, result, BranchKind.STATEMENT);
caseExpressionNodes.add(caseNode);
Expand Down

0 comments on commit 8d56f57

Please sign in to comment.