On the Influence of Refactoring Types on Merge Effort

📅 2026-08-15
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the lack of quantitative analysis regarding how specific refactoring types affect code merge costs. Analyzing 64 Java projects through refactoring detection and association rule mining, this work provides the first fine-grained quantification of the independent and synergistic impacts of individual refactorings and their combinations on merge effort. Results indicate that refactorings such as attribute renaming significantly increase merge costs, while the volume, diversity, and cross-branch co-occurrence of refactorings independently elevate merge effort. By elucidating the intrinsic mechanisms through which refactorings induce merge conflicts, this research offers empirical evidence to inform and optimize code merging strategies.
📝 Abstract
Modern software development involves parallel work and concurrent changes, requiring code merging. Prior studies report that 10% to 20% of merge attempts result in conflicts, often requiring manual intervention. The literature explores factors that generate conflicts, including refactorings, but does not analyze how individual refactoring types influence the manual effort required to resolve them. We analyzed 64 open-source Java projects and applied association rule mining to measure the strength of associations between specific refactoring types and merge effort. Our results show that refactoring types relate to merge effort with varying strength. In particular, Rename Attribute, Move Class, Extract Variable, Change Return Type, and Split Parameter exhibit some of the strongest associations, especially when a higher number of such refactorings is present in the merge branches. We also find that both the number of refactorings and their diversity independently increase merge effort, both in terms of occurrence and intensity. Additionally, the co-occurrence of refactorings across parallel branches is associated with higher merge effort, particularly when combining structural transformations with changes to method signatures and data-structure representations, whereas more localized changes are less frequent in the most impactful combinations.
Problem

Research questions and friction points this paper is trying to address.

Refactoring Types
Merge Effort
Code Merging
Merge Conflicts
Innovation

Methods, ideas, or system contributions that make the work stand out.

Refactoring Types
Merge Effort
Association Rule Mining
Code Merging
Parallel Development