Skip to content

Commit

Permalink
Report Inline Method as Move and Inline Method (issue #715)
Browse files Browse the repository at this point in the history
Inline Method	private assign(context BstEntry, o1 Object, o2 Object) : boolean inlined to public execute(visitor BstVMVisitor, ctx ParserRuleContext, bstEntry BstEntry) : void in class org.jabref.logic.bst.BstFunctions.BstAssignFunction

is reported now as

Move And Inline Method	private assign(context BstEntry, o1 Object, o2 Object) : boolean moved from class org.jabref.logic.bst.VM to class org.jabref.logic.bst.BstFunctions.BstAssignFunction & inlined to public execute(visitor BstVMVisitor, ctx ParserRuleContext, bstEntry BstEntry) : void
  • Loading branch information
tsantalis committed May 27, 2024
1 parent 3234b00 commit 080e0e6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ public String getName() {
public RefactoringType getRefactoringType() {
if (!getTargetOperationBeforeInline().getClassName().equals(getInlinedOperation().getClassName()))
return RefactoringType.MOVE_AND_INLINE_OPERATION;
if (bodyMapper.getClassDiff() != null) {
if(!bodyMapper.getClassDiff().getNextClassName().equals(getTargetOperationAfterInline().getClassName()))
return RefactoringType.MOVE_AND_INLINE_OPERATION;
}
return RefactoringType.INLINE_OPERATION;
}

Expand Down

0 comments on commit 080e0e6

Please sign in to comment.