[Paper Review] A Survey of Refactoring Detection Techniques Based on Change History Analysis
This paper surveys refactoring detection techniques based on change history analysis, categorizing them into six subtypes and evaluating their effectiveness. It identifies key challenges in detection accuracy and scalability, and proposes future research directions, including combining multiple detection techniques and establishing standardized quantitative evaluation frameworks with shared datasets.
Refactoring is the process of changing a software system in such a way that it does not alter the external behavior of the code yet improves its internal structure. Not only researchers, but also practitioners, need to know about past refactoring instances performed in a software development project. So far, a number of techniques have been proposed for automatic detection of refactoring instances. Those techniques have been presented in various international conferences and journals, however, it is difficult for researchers and practitioners to grasp the current status of studies on refactoring detection techniques. In this survey paper, we review various refactoring detection techniques, especially techniques based on change history analysis. First, we give the definition and categorization of refactoring detection methods in this paper, and then introduce refactoring detection techniques based on change history analysis. Finally, we discuss possible future research directions for refactoring detection.
Motivation & Objective
- To provide a comprehensive survey of refactoring detection techniques based on change history analysis for researchers and practitioners.
- To classify and analyze existing techniques under six subcategories of change history-based detection.
- To identify gaps in current research, particularly in the combination of techniques and quantitative evaluation.
- To propose future research directions, including scalable detection and standardized benchmark datasets.
- To support empirical studies and tool development by clarifying the current state of the art in refactoring detection.
Proposed method
- The paper classifies refactoring detection techniques into four main categories: commit log mining, developer observation, tool usage logging, and change history analysis.
- It further subdivides change history-based techniques into six subcategories: clone detection, AST-based analysis, metric-based analysis, genetic algorithm-based approaches, similarity-based analysis of AST elements, and iterative refactoring application with validation.
- For each subcategory, the paper reviews representative techniques, such as Ref-Finder for dynamic analysis and Thangthumachit et al.'s AST similarity-based method.
- The study evaluates techniques based on their ability to detect mixed refactorings, handle false positives, and scale across large revision histories.
- It emphasizes the use of structural and metric-based comparisons between code versions to infer refactoring operations without altering external behavior.
- The paper advocates for standardized datasets and quantitative evaluation frameworks to enable fair comparison across techniques.
Experimental results
Research questions
- RQ1How are refactoring detection techniques based on change history analysis currently categorized and what are their core mechanisms?
- RQ2What are the limitations of existing refactoring detection techniques in terms of accuracy, scalability, and false positive rates?
- RQ3How can multiple detection techniques be combined to improve detection precision and recall?
- RQ4What are the key challenges in enabling quantitative evaluation of refactoring detection tools?
- RQ5What future research directions are most critical for advancing the state of the art in automated refactoring detection?
Key findings
- Very few studies have explored combined approaches to refactoring detection, despite the potential for improved accuracy by integrating rule-based, clone-based, and genetic algorithm-based methods.
- Quantitative evaluation of refactoring detection techniques remains limited due to the lack of standardized datasets and clear definitions of refactoring instances, including impure or floss refactorings.
- Existing techniques often analyze entire codebases per revision pair, resulting in high computational costs when scaling to longitudinal revision sequences.
- Techniques based on AST similarity and iterative refactoring application show promise in detecting complex, mixed refactorings with higher precision.
- The study highlights the need for shared datasets and evaluation mechanisms to enable fair and reproducible benchmarking of detection tools.
- Scalability evaluation with respect to the number of revisions is underdeveloped, indicating a need for lightweight, difference-only analysis approaches.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.