Closed tsantalis closed 1 year ago
Yes, they are identical blocks and they are matched by the MissingIdenticalSubTree matcher. You can disable this matcher by commenting out the code (Lines 62-65 in the ProjectASTDiffer) I will also add a constraint to avoid block matching in this phase.
@pouryafard75
The rule is too strict perhaps.
I would exclude common return
statements with default values
return true
return false
return null
return NumberLiteral
@pouryafard75 This is also related to the same problem, I think https://github.com/tsantalis/RefactoringMiner/issues/517#issuecomment-1672406988
@tsantalis Fixed
https://github.com/thymeleaf/thymeleaf/commit/378ba37750a9cb1b19a6db434dfa59308f721ea6
These two
return false;
statements shouldn't be matched. @pouryafard75 Is this related to matching the remaining unmatched statements?