From 380276e7761f4205800b7068c489c0944d4eaccb Mon Sep 17 00:00:00 2001 From: tsantalis Date: Wed, 11 Dec 2024 08:12:53 -0500 Subject: [PATCH] Fix for failing test --- .../gr/uom/java/xmi/decomposition/AbstractCodeMapping.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/gr/uom/java/xmi/decomposition/AbstractCodeMapping.java b/src/main/java/gr/uom/java/xmi/decomposition/AbstractCodeMapping.java index 4a092b33c1..e97ccc48ba 100644 --- a/src/main/java/gr/uom/java/xmi/decomposition/AbstractCodeMapping.java +++ b/src/main/java/gr/uom/java/xmi/decomposition/AbstractCodeMapping.java @@ -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; }