Skip to content

Commit

Permalink
Discard Move+Rename Constructor between different source folders
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Dec 29, 2024
1 parent de44370 commit e8943b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 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 @@ -5080,7 +5080,14 @@ else if(removedOperation.isConstructor() == addedOperation.isConstructor() &&
}
else if(removedOperation.isConstructor() == addedOperation.isConstructor() &&
movedAndRenamedMethodSignature(removedOperation, addedOperation, firstMapper, multipleMappers) && !refactoringListContainsAnotherMoveRefactoringWithTheSameOperations(removedOperation, addedOperation)) {
refactoring = new MoveOperationRefactoring(firstMapper);
if(removedOperation.isConstructor()) {
if(firstMapper.getContainer1().getLocationInfo().getSourceFolder().equals(firstMapper.getContainer2().getLocationInfo().getSourceFolder())) {
refactoring = new MoveOperationRefactoring(firstMapper);
}
}
else {
refactoring = new MoveOperationRefactoring(firstMapper);
}
}
if(refactoring != null) {
deleteRemovedOperation(removedOperation);
Expand Down

0 comments on commit e8943b4

Please sign in to comment.