Skip to content

Commit

Permalink
Fixing failing test cases because of dependency updates (moving to th…
Browse files Browse the repository at this point in the history
…e new signatures from the deprecated ones)
  • Loading branch information
herenyi committed Jan 3, 2018
1 parent 0a7a515 commit f210468
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion cobertura/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
<artifactId>ant</artifactId>
<version>${antVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit4</artifactId>
<version>${antVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit</artifactId>
Expand Down Expand Up @@ -183,7 +188,6 @@
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logbackVersion}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public void visitLookupSwitchInsn(Label arg0, int[] arg1, Label[] arg2) {
}

@Override
public void visitMethodInsn(int arg0, String arg1, String arg2, String arg3) {
super.visitMethodInsn(arg0, arg1, arg2, arg3);
appendToBacklog(new MethodInsnNode(arg0, arg1, arg2, arg3));
public void visitMethodInsn(int arg0, String arg1, String arg2, String arg3, boolean intf) {
super.visitMethodInsn(arg0, arg1, arg2, arg3, intf);
appendToBacklog(new MethodInsnNode(arg0, arg1, arg2, arg3, intf));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ public void visitIntInsn(int arg0, int arg1) {

@Override
public void visitMethodInsn(int opcode, String owner, String name,
String desc) {
String desc, boolean intf) {
if (ignoredStatus.isTrivial()
&& !(ignoredStatus == IgnoredStatus.POSSIBLE_TRIVIAL_INIT
&& name.equals("<init>") && owner.equals(superName) && opcode == Opcodes.INVOKESPECIAL)) {
markNotTrivial();
}
super.visitMethodInsn(opcode, owner, name, desc);
super.visitMethodInsn(opcode, owner, name, desc, intf);
}

@Override
Expand Down

0 comments on commit f210468

Please sign in to comment.