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 a798a27ae..ea567cf01 100644 --- a/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java +++ b/src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java @@ -1805,6 +1805,13 @@ private boolean instanceAttributeMovedAlongWithMethod(UMLAttribute addedAttribut } } } + if(targetClassDiff != null) { + for(UMLAttribute attribute : targetClassDiff.getOriginalClass().getAttributes()) { + if(attribute.getType() != null && removedAttribute.getClassName().endsWith(attribute.getType().getClassType())) { + return true; + } + } + } for(Refactoring r : refactorings) { if(r instanceof MoveOperationRefactoring) { MoveOperationRefactoring move = (MoveOperationRefactoring)r;