Skip to content

Is the Move Method refactoring a true instance? #17

@osmarleandro

Description

@osmarleandro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions