Skip to content

Commit

Permalink
Fix for issue #831
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Dec 19, 2024
1 parent 69d7bc8 commit c70b508
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2328,12 +2328,12 @@ else if(invocationCoveringTheEntireStatement1 != null && (r = invocationCovering
}
for(String methodInvocation1 : methodInvocations1) {
for(AbstractCall operationInvocation1 : methodInvocationMap1.get(methodInvocation1)) {
if(statement1.getString().endsWith(methodInvocation1 + JAVA.STATEMENT_TERMINATION) && (r = operationInvocation1.makeReplacementForReturnedArgument(replacementInfo.getArgumentizedString2())) != null) {
if(operationInvocation1.makeReplacementForReturnedArgument(statement2.getString()) != null) {
if((statement1.getString().endsWith(methodInvocation1 + JAVA.STATEMENT_TERMINATION) || statement1.getString().startsWith(methodInvocation1 + ".")) && (r = operationInvocation1.makeReplacementForReturnedArgument(replacementInfo.getArgumentizedString2())) != null) {
//if(operationInvocation1.makeReplacementForReturnedArgument(statement2.getString()) != null) {
replacementInfo.addReplacement(r);
addLeafMappings(statement1, statement2, r, replacementInfo, container1, container2);
return replacementInfo.getReplacements();
}
//}
}
}
}
Expand All @@ -2349,12 +2349,12 @@ else if(invocationCoveringTheEntireStatement1 != null && (r = invocationCovering
}
for(String methodInvocation2 : methodInvocations2) {
for(AbstractCall operationInvocation2 : methodInvocationMap2.get(methodInvocation2)) {
if(statement2.getString().endsWith(methodInvocation2 + JAVA.STATEMENT_TERMINATION) && (r = operationInvocation2.makeReplacementForWrappedCall(replacementInfo.getArgumentizedString1())) != null) {
if(operationInvocation2.makeReplacementForWrappedCall(statement1.getString()) != null) {
if((statement2.getString().endsWith(methodInvocation2 + JAVA.STATEMENT_TERMINATION) || statement2.getString().startsWith(methodInvocation2 + ".")) && (r = operationInvocation2.makeReplacementForWrappedCall(replacementInfo.getArgumentizedString1())) != null) {
//if(operationInvocation2.makeReplacementForWrappedCall(statement1.getString()) != null) {
replacementInfo.addReplacement(r);
addLeafMappings(statement1, statement2, r, replacementInfo, container1, container2);
return replacementInfo.getReplacements();
}
//}
}
}
}
Expand Down

0 comments on commit c70b508

Please sign in to comment.