Skip to content

Commit

Permalink
Better support for attributes moved from deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Jan 10, 2025
1 parent da6f7c9 commit ff5011c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/gr/uom/java/xmi/diff/UMLModelDiff.java
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,8 @@ else if(isSubclassOf(addedAttribute.getClassName(), removedAttribute.getClassNam
return pushDownAttribute;
}
else if(sourceClassImportsTargetClass(removedAttribute.getClassName(), addedAttribute.getClassName()) ||
targetClassImportsSourceClass(removedAttribute.getClassName(), addedAttribute.getClassName())) {
targetClassImportsSourceClass(removedAttribute.getClassName(), addedAttribute.getClassName()) ||
getRemovedClass(removedAttribute.getClassName()) != null) {
if(!initializerContainsTypeLiteral(addedAttribute, removedAttribute)) {
UMLAttributeDiff attributeDiff = new UMLAttributeDiff(removedAttribute, addedAttribute, Collections.emptyList());
boolean initializerWithMethodCallReplacement = false;
Expand Down

0 comments on commit ff5011c

Please sign in to comment.