From 00028d2fa5d0a28ac925ae642f4b09e8039386c6 Mon Sep 17 00:00:00 2001 From: tsantalis Date: Tue, 17 Dec 2024 10:26:50 -0500 Subject: [PATCH] Small improvement --- src/main/java/gr/uom/java/xmi/diff/MappingOptimizer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/gr/uom/java/xmi/diff/MappingOptimizer.java b/src/main/java/gr/uom/java/xmi/diff/MappingOptimizer.java index fffffd9650..44640fd081 100644 --- a/src/main/java/gr/uom/java/xmi/diff/MappingOptimizer.java +++ b/src/main/java/gr/uom/java/xmi/diff/MappingOptimizer.java @@ -665,6 +665,9 @@ private boolean stringBasedInvocationMatch(AbstractCodeFragment callFragment, Ab if(invocation.getCoverage().equals(StatementCoverageType.VARIABLE_DECLARATION_INITIALIZER_CALL)) { return true; } + if(callFragment instanceof AbstractExpression) { + return true; + } String expression = invocation.getExpression(); if(expression != null && !expression.equals("this")) { return true;