Skip to content

Commit

Permalink
Improve mappings for commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Aug 2, 2024
1 parent d465813 commit 5713e8f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -738,16 +738,16 @@ else if(streamAPIStatements1.size() > 0 && streamAPIStatements2.size() == 0) {
boolean unmatchedParent = false;
while(parent1 != null && parent2 != null) {
if(parent1.getParent() == null || parent2.getParent() == null) {
if(parent1 instanceof TryStatementObject && parent1.getParent().getParent() == null) {
if(parent1 instanceof TryStatementObject) {
break;
}
if(parent2 instanceof TryStatementObject && parent2.getParent().getParent() == null) {
if(parent2 instanceof TryStatementObject) {
break;
}
if(parent1.getLocationInfo().getCodeElementType().equals(CodeElementType.FINALLY_BLOCK) && parent1.getParent().getParent() == null) {
if(parent1.getLocationInfo().getCodeElementType().equals(CodeElementType.FINALLY_BLOCK)) {
break;
}
if(parent2.getLocationInfo().getCodeElementType().equals(CodeElementType.FINALLY_BLOCK) && parent2.getParent().getParent() == null) {
if(parent2.getLocationInfo().getCodeElementType().equals(CodeElementType.FINALLY_BLOCK)) {
break;
}
if(child1.getAnonymousClassDeclarations().size() > 0 && child2.getAnonymousClassDeclarations().size() > 0) {
Expand Down

0 comments on commit 5713e8f

Please sign in to comment.