Skip to content

Commit

Permalink
Final fix for issue #419
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Mar 23, 2023
1 parent 9b00d06 commit 720712f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gr/uom/java/xmi/diff/ExtractOperationRefactoring.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ else if(leaf.getParent() != null && bodyMapper.parentMapperContainsMapping(leaf.
else if(leaf.getParent() != null && leaf.getParent().getParent() == null) {
return true;
}
if(extractedOperationInvocations.size() == 1) {
return true;
}
return false;
}

Expand Down
3 changes: 3 additions & 0 deletions src/gr/uom/java/xmi/diff/InlineOperationRefactoring.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ else if(leaf.getParent() != null && bodyMapper.parentMapperContainsMapping(leaf.
else if(leaf.getParent() != null && leaf.getParent().getParent() == null) {
return true;
}
if(inlinedOperationInvocations.size() == 1) {
return true;
}
return false;
}

Expand Down

0 comments on commit 720712f

Please sign in to comment.