Skip to content

Commit 31f16d8

Browse files
authored
Upgrade ECJ to 3.33.0 (#1423)
1 parent 3d58c42 commit 31f16d8

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

org.jacoco.build/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@
939939
<dependency>
940940
<groupId>org.eclipse.jdt</groupId>
941941
<artifactId>ecj</artifactId>
942-
<version>3.32.0</version>
942+
<version>3.33.0</version>
943943
</dependency>
944944
<dependency>
945945
<groupId>org.codehaus.plexus</groupId>

org.jacoco.core.test.validation.java16/src/org/jacoco/core/test/validation/java16/InstanceofTest.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,4 @@ public InstanceofTest() {
2525
super(InstanceofTarget.class);
2626
}
2727

28-
public void assertInstanceof(Line line) {
29-
if (isJDKCompiler) {
30-
assertFullyCovered(line, 0, 2);
31-
} else {
32-
// Upgrade to ECJ version with
33-
// https://github.com/eclipse-jdt/eclipse.jdt.core/commit/3b4c932227240d090904e141a485ba9181a79b67
34-
// will lead to the absence of missed branches
35-
assertFullyCovered(line, 1, 3);
36-
}
37-
}
38-
3928
}

org.jacoco.core.test.validation.java16/src/org/jacoco/core/test/validation/java16/targets/InstanceofTarget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
public class InstanceofTarget {
2222

2323
private static void ifInstanceof(Object e) {
24-
if (e instanceof String s) { // assertInstanceof()
24+
if (e instanceof String s) { // assertFullyCovered(0, 2)
2525
nop(s);
2626
}
2727
}

0 commit comments

Comments
 (0)