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 64cab0430..b9b62f958 100644 --- a/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java +++ b/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java @@ -4495,7 +4495,7 @@ else if(!newMappingSamePackage && oldMappingSamePackage) { private Set findMappersWithTheSameFragment1(Set mappings) { Set mappers = new LinkedHashSet(); for(Refactoring r : this.refactorings) { - if(r instanceof ExtractOperationRefactoring) { + if(r instanceof ExtractOperationRefactoring && r.getRefactoringType().equals(RefactoringType.EXTRACT_AND_MOVE_OPERATION)) { ExtractOperationRefactoring extract = (ExtractOperationRefactoring)r; for(AbstractCodeMapping newMapping : mappings) { for(AbstractCodeMapping oldMapping : extract.getBodyMapper().getMappings()) {