Skip to content

Commit

Permalink
Fix statement mappings and Extract Variable detection in commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Jan 19, 2025
1 parent b41b988 commit 688075b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ else if(token1.endsWith(")" + JAVA.STATEMENT_TERMINATION) && token2.endsWith(JAV
}
int size = filteredIntersection.size();
int threshold = Math.max(tokens1.size(), tokens2.size()) - size;
if((size > 0 && size > threshold) || (size > 1 && size >= threshold) || (size > 1 && subExpressionMappings.size() == size)) {
if((size > 0 && size > threshold) || (size > 1 && size >= threshold) || (size > 1 && subExpressionMappings.size() == size) || (size > 1 && intersection.size() == Math.min(tokens1.size(), tokens2.size()))) {
List<String> tokens1AsList = new ArrayList<>(tokens1);
List<String> tokens2AsList = new ArrayList<>(tokens2);
int counter = 0;
Expand Down

0 comments on commit 688075b

Please sign in to comment.