diff --git a/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java b/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java index b16c33fc2..5d02ab9ba 100644 --- a/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java +++ b/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java @@ -1359,9 +1359,15 @@ private static String matches(String s, Set classNames, AbstractCodeFrag matches.add(className); } } + AbstractCall invocationCoveringEntireStatement = fragment.invocationCoveringEntireFragment(); for(AbstractCall call : fragment.getMethodInvocations()) { if(call.actualString().equals(s) && s.contains(className)) { - matches.add(className); + boolean skip = false; + if(invocationCoveringEntireStatement != null && invocationCoveringEntireStatement.actualString().equals(call.actualString())) { + skip = true; + } + if(!skip) + matches.add(className); } } }