From 4629b0ce5a7c740abca2e3d916db80a90fcb8618 Mon Sep 17 00:00:00 2001 From: tsantalis Date: Sun, 29 Dec 2024 05:09:58 -0500 Subject: [PATCH] Improvement over previous commit --- src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java b/src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java index 9ab74a4fc..745071470 100644 --- a/src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java +++ b/src/main/java/gr/uom/java/xmi/diff/UMLClassBaseDiff.java @@ -2507,7 +2507,7 @@ private UMLOperationBodyMapper findBestMapper(TreeSet ma VariableDeclarationContainer secondBestMapperOperation1 = mapperList.size() > 1 ? mapperList.get(1).getContainer1() : null; VariableDeclarationContainer secondBestMapperOperation2 = mapperList.size() > 1 ? mapperList.get(1).getContainer2() : null; boolean secondBestMapperEqualSignatureWithCommonParameterTypes = secondBestMapperOperation1 != null && secondBestMapperOperation2 != null ? - equalSignatureWithCommonParameterTypes(secondBestMapperOperation1, secondBestMapperOperation2) : false; + equalSignatureWithCommonParameterTypes(secondBestMapperOperation1, secondBestMapperOperation2) && !secondBestMapperOperation1.isConstructor() && !secondBestMapperOperation2.isConstructor() : false; int secondBestCommontParameterTypes = secondBestMapperOperation1 != null && secondBestMapperOperation2 != null ? secondBestMapperOperation1.commonParameterTypes(secondBestMapperOperation2).size() : 0; boolean identicalBodyWithOperation1OfTheBestMapper = identicalBodyWithAnotherAddedMethod(bestMapper);