2017 · 138 citations · 22 references
ComputingComputer ScienceAdaptive ReuseQuality EngineeringSoftware EngineeringSoftware MaintenanceSoftware RefactoringStatic Code AnalysisAutomated RefactoringCode Similarity AnalysisRefactoringRefactoring DetectionRefactoring OperationsSoftware Code SimilaritySoftware ComponentsSoftware Evolution Analysis
Refactoring is widely adopted to improve design and enable system evolution, and identifying applied refactorings provides valuable insight for software evolution, component adaptation, and code merging. The paper introduces RefDiff, an automated method for detecting refactorings between two git revisions. RefDiff uses static‑analysis‑based heuristics and code‑similarity metrics to detect 13 common refactoring types. On an oracle of 448 refactorings across seven Java projects, RefDiff achieved 100 % precision and 88 % recall, outperforming existing state‑of‑the‑art methods.
Refactoring is a well-known technique that is widely adopted by software engineers to improve the design and enable the evolution of a system. Knowing which refactoring operations were applied in a code change is a valuable information to understand software evolution, adapt software components, merge code changes, and other applications. In this paper, we present RefDiff, an automated approach that identifies refactorings performed between two code revisions in a git repository. RefDiff employs a combination of heuristics based on static analysis and code similarity to detect 13 well-known refactoring types. In an evaluation using an oracle of 448 known refactoring operations, distributed across seven Java projects, our approach achieved precision of 100% and recall of 88%. Moreover, our evaluation suggests that RefDiff has superior precision and recall than existing state-of-the-art approaches.
22
Zhenchang Xing, Eleni Stroulia · 2005 · 369 citations
Why we refactor? confessions of GitHub contributors
Danilo Silva, Nikolaos Tsantalis, Marco Túlio Valente · 2016 · 278 citations · Full text
Johannes Henkel, Amer Diwan · 2005 · 274 citations
Finding refactorings via change metrics
Serge Demeyer, Sté́phane Ducasse, Oscar Nierstrasz · 2000 · 255 citations · Full text