Skip to content

Commit

Permalink
Update spoon version and correctly use java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Pine committed Apr 10, 2024
1 parent 4068d9b commit c64b226
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void testRunSimple() throws Exception {
this.getClass().getResource("/initialized").toURI().getPath(), "simpleflow", true);
InitializedVariables vars = new InitializedVariables();
graph.simplify();
ControlFlowNode n = graph.findNodesOfKind(NodeKind.EXIT).getFirst();
ControlFlowNode n = graph.findNodesOfKind(NodeKind.EXIT).get(0);
vars.run(n);

for (CtVariableReference<?> v : vars.getInitialized()) {
Expand Down Expand Up @@ -138,7 +138,7 @@ public void testIndex54_Bug() throws Exception {
InitializedVariables vars = new InitializedVariables();
graph.simplify();
System.out.print(graph.toGraphVisText());
ControlFlowNode n = ControlFlowBuilder.firstNode(graph, graph.branches().getFirst().getStatement().getParent());
ControlFlowNode n = ControlFlowBuilder.firstNode(graph, graph.branches().get(0).getStatement().getParent());
vars.run(n);

HashSet<String> names = new HashSet<>();
Expand Down

0 comments on commit c64b226

Please sign in to comment.