From 623a709899a786ec27f5c89091743774e9f823ae Mon Sep 17 00:00:00 2001 From: tsantalis Date: Wed, 18 Dec 2024 11:41:54 -0500 Subject: [PATCH] Final fix --- .../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 e370dac5e2..5769864bed 100644 --- a/src/main/java/gr/uom/java/xmi/decomposition/AbstractCodeMapping.java +++ b/src/main/java/gr/uom/java/xmi/decomposition/AbstractCodeMapping.java @@ -154,7 +154,8 @@ private boolean argumentizedStringExactAfterTypeReplacement() { return true; } } - else if(s1.contains(r.getBefore() + ".class") && s2.contains(r.getAfter() + ".class")) { + else if(s1.contains(r.getBefore() + ".class") && s2.contains(r.getAfter() + ".class") && + !s1.contains("<" + r.getBefore() + ">") && !s2.contains("<" + r.getAfter() + ">")) { String temp = s2.replace(r.getAfter(), r.getBefore()); if(s1.equals(temp) || (s1 + JAVA.STATEMENT_TERMINATION).equals(temp)) { return true;