Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the Move Method refactoring a true instance? #17

Open
osmarleandro opened this issue Jan 26, 2021 · 0 comments
Open

Is the Move Method refactoring a true instance? #17

osmarleandro opened this issue Jan 26, 2021 · 0 comments

Comments

@osmarleandro
Copy link

Summary

In the source code of osmarleandro/RefactoringMiner@d67f4b4 commit, I applied a single Rename Class refactoring to VariableDeclarationProvider class. RefDiff yields a single Move Method refactoring as result. Why is the Rename Class refactoring instance not detected?

Code example

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

@@ -2,6 +2,6 @@ package gr.uom.java.xmi;
 
 import gr.uom.java.xmi.decomposition.VariableDeclaration;
 
-public interface VariableDeclarationProvider {
+public interface VariableDeclarationProvider_RENAMED {

Environment details

RefDiff 2.0

Steps to reproduce

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

Actual results

MOVE	{Method getVariableDeclaration() at src/gr/uom/java/xmi/VariableDeclarationProvider.java:6}	{Method getVariableDeclaration() at src/gr/uom/java/xmi/VariableDeclarationProvider_RENAMED.java:6})

Expected results

A single instance of the Rename Class refactoring applied to VariableDeclarationProvider class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant