Skip to content

Commit

Permalink
Fix for failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Dec 11, 2024
1 parent d99d509 commit 380276e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ private boolean callChainMatch() {
if(longestCommonSuffix.startsWith(").")) {
longestCommonSuffix = longestCommonSuffix.substring(2);
}
if(longestCommonPrefix.endsWith(".") && !longestCommonSuffix.contains(longestCommonPrefix) &&
if(longestCommonPrefix.endsWith(".") && !longestCommonPrefix.contains(JAVA.ASSIGNMENT) && !longestCommonPrefix.startsWith("if(") &&
!longestCommonSuffix.startsWith(longestCommonPrefix) &&
(s1.equals(longestCommonPrefix + longestCommonSuffix) || s2.equals(longestCommonPrefix + longestCommonSuffix))) {
return true;
}
Expand Down

0 comments on commit 380276e

Please sign in to comment.