diff --git a/spoon-control-flow/pom.xml b/spoon-control-flow/pom.xml index 35f403da1f3..937c65b8dee 100644 --- a/spoon-control-flow/pom.xml +++ b/spoon-control-flow/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 spoon-control-flow - 10.4.3-SNAPSHOT + 11.0.0 @@ -17,7 +17,7 @@ fr.inria.gforge.spoon spoon-pom - 10.4.3-SNAPSHOT + 11.0.0 ../spoon-pom diff --git a/spoon-control-flow/src/test/java/spoon/controlflow/InitializedVariablesTest.java b/spoon-control-flow/src/test/java/spoon/controlflow/InitializedVariablesTest.java index 6ba86f5d378..3e6d1b2cdbf 100644 --- a/spoon-control-flow/src/test/java/spoon/controlflow/InitializedVariablesTest.java +++ b/spoon-control-flow/src/test/java/spoon/controlflow/InitializedVariablesTest.java @@ -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()) { @@ -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 names = new HashSet<>();