Skip to content

Commit

Permalink
Improved solution over previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Jan 16, 2025
1 parent ea6810d commit ff76382
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3524,6 +3524,9 @@ public void computeRefactoringsWithinBody() throws RefactoringMinerTimedOutExcep
assertThrowsCalls.add(call);
for(AbstractCodeMapping mapping : this.mappings) {
if(call.getLocationInfo().subsumes(mapping.getFragment2().getLocationInfo()) || mapping.getFragment2().getLocationInfo().subsumes(call.getLocationInfo())) {
if(parentMapper != null && parentMapper.getMappings().contains(mapping)) {
continue;
}
if(assertThrowsMappings.containsKey(call.actualString())) {
assertThrowsMappings.get(call.actualString()).add(mapping);
}
Expand Down Expand Up @@ -8982,7 +8985,7 @@ private void processAnonymousClassDeclarationsInIdenticalStatements(LeafMapping
this.nonMappedInnerNodesT2.addAll(mapper.nonMappedInnerNodesT2);
this.nonMappedLeavesT1.addAll(mapper.nonMappedLeavesT1);
this.nonMappedLeavesT2.addAll(mapper.nonMappedLeavesT2);
if(this.container1 != null && this.container2 != null && !lambda1.getString().equals(lambda2.getString())) {
if(this.container1 != null && this.container2 != null) {
this.refactorings.addAll(mapper.getRefactorings());
}
}
Expand Down

0 comments on commit ff76382

Please sign in to comment.