aserg-ufmg / RefDiff

A tool to mine refactorings in the commit history of git repositories.
MIT License
146 stars 44 forks source link

Is it missing the Rename Method refactoring? #18

Open osmarleandro opened 3 years ago

osmarleandro commented 3 years ago

Summary

In the source code present in osmarleandro/RefactoringMiner@cf32531 commit, I applied a single Rename Method refactoring to getRegex() method in the RefactoringType class. RefDiff yields an empty list of refactoring. Is it missing this true instance of Rename Method refactoring?

Code example

Diff fragment between the commit osmarleandro/RefactoringMiner@cf32531 and their parent.

@@ -121,7 +121,7 @@ public enum RefactoringType {
                this.aggregateGroups = aggregateGroups;
        }

-       public Pattern getRegex() {
+       public Pattern getRegex_RENAMED() {
         return regex;
     }

Environment details

RefDiff 2.0

Steps to reproduce

  1. Run RefDiff and pass as input the commit osmarleandro/RefactoringMiner@cf32531.

Expected results

A single instance of the Rename Method refactoring applied to getRegex() method in the RefactoringType class.