Skip to content

Commit

Permalink
Restore broken method pair in commit
Browse files Browse the repository at this point in the history
junit-team/junit4@24a5aad
Rename Method	protected runMethod(method TestMethod, notifier RunNotifier) : void renamed to protected runChild(method TestMethod, notifier RunNotifier) : void in class org.junit.internal.runners.JUnit4ClassRunner
  • Loading branch information
tsantalis committed Dec 26, 2024
1 parent af4e2c7 commit 6c9ba22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ else if(statement1.getString().equals(list2.get(i))) {
assertThrows2++;
}
}
boolean anonymousCollapse = Math.abs(totalNodes1 - totalNodes2) > Math.min(totalNodes1, totalNodes2);
boolean anonymousCollapse = Math.abs(totalNodes1 - totalNodes2) > Math.min(totalNodes1, totalNodes2) && Math.min(totalNodes1, totalNodes2) > 1;
if(!operation1.isDeclaredInAnonymousClass() && !operation2.isDeclaredInAnonymousClass() && anonymousCollapse) {
if((anonymous1.size() == 1 && anonymous2.size() == 0) ||
(anonymous1.size() == 1 && anonymous2.size() == 1 && anonymous1.get(0).getAnonymousClassDeclarations().size() > 0 && anonymous2.get(0).getAnonymousClassDeclarations().size() == 0) ||
Expand Down

0 comments on commit 6c9ba22

Please sign in to comment.