Skip to content

Commit

Permalink
Undo last commit. A better solution should be found
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Dec 26, 2024
1 parent 6c9ba22 commit d663e28
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) && Math.min(totalNodes1, totalNodes2) > 1;
boolean anonymousCollapse = Math.abs(totalNodes1 - totalNodes2) > Math.min(totalNodes1, totalNodes2);
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 d663e28

Please sign in to comment.