Comparing approaches to analyze refactoring activity on software repositories

被引:38
|
作者
Soares, Gustavo [1 ]
Gheyi, Rohit [1 ]
Murphy-Hill, Emerson [2 ]
Johnson, Brittany [2 ]
机构
[1] Univ Fed Campina Grande, Dept Comp & Syst, BR-58429900 Campina Grande, PB, Brazil
[2] N Carolina State Univ, Dept Comp Sci, Raleigh, NC 27695 USA
关键词
Refactoring; Repository; Manual analysis; Automated analysis;
D O I
10.1016/j.jss.2012.10.040
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Some approaches have been used to investigate evidence on how developers refactor their code, whether refactorings activities may decrease the number of bugs, or improve developers' productivity. However, there are some contradicting evidence in previous studies. For instance, some investigations found evidence that if the number of refactoring changes increases in the preceding time period the number of defects decreases, different from other studies. They have used different approaches to evaluate refactoring activities. Some of them identify committed behavior-preserving transformations in software repositories by using manual analysis, commit messages, or dynamic analysis. Others focus on identifying which refactorings are applied between two programs by using manual inspection or static analysis. In this work, we compare three different approaches based on manual analysis, commit message (Ratzinger's approach) and dynamic analysis (SAFEREFACTOR'S approach) to detect whether a pair of versions determines a refactoring, in terms of behavioral preservation. Additionally, we compare two approaches (manual analysis and REF-FINDER) to identify which refactorings are performed in each pair of versions. We perform both comparisons by evaluating their accuracy, precision, and recall in a randomly selected sample of 40 pairs of versions of JHotDraw, and 20 pairs of versions of Apache Common Collections. While the manual analysis presents the best results in both comparisons, it is not as scalable as the automated approaches. Ratzinger's approach is simple and fast, but presents a low recall; differently, SAFEREFACTOR is able to detect most applied refactorings, although limitations in its test generation backend results for some kinds of subjects in low precision values. REF-FINDER presented a low precision and recall in our evaluation. (c) 2012 Elsevier Inc. All rights reserved.
引用
收藏
页码:1006 / 1022
页数:17
相关论文
共 50 条
  • [41] Case study on software refactoring tactics
    Liu, Hui
    Liu, Yang
    Xue, Guo
    Gao, Yuan
    IET SOFTWARE, 2014, 8 (01) : 1 - 11
  • [42] RefBot: Intelligent Software Refactoring Bot
    Alizadeh, Valid
    Ouali, Mohamed Amine
    Kessentini, Marouane
    Chater, Meriem
    34TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE 2019), 2019, : 835 - 846
  • [43] Refactoring at the Core of Agile Software Development
    Yoder, Joseph W.
    AOSD 2011 PROCEEDINGS AND COMPANION MATERIAL, 2011, : 51 - 52
  • [44] A prototype for software refactoring recommendation system
    Gao Y.
    Zhang Y.
    Lu W.
    Luo J.
    Hao D.
    International Journal of Performability Engineering, 2020, 16 (07) : 1095 - 1104
  • [45] Improving usability of software refactoring tools
    Mealy, Erica
    Carrington, David
    Strooper, Paul
    Wyeth, Peta
    2007 AUSTRALIAN SOFTWARE ENGINEERING CONFERENCE, PROCEEDINGS, 2007, : 307 - +
  • [46] Multiobjective Optimization for Software Refactoring and Evolution
    Ouni, Ali
    Kessentini, Marouane
    Sahraoui, Houari
    ADVANCES IN COMPUTERS, VOL 94, 2014, 94 : 103 - 167
  • [47] Introduction to the special section on Software Refactoring
    Ouni, Ali
    Kessentini, Marouane
    Cinneide, Mel O.
    INFORMATION AND SOFTWARE TECHNOLOGY, 2018, 95 : 328 - 328
  • [48] Refactoring software to heterogeneous parallel platforms
    J. Daniel Garcia
    The Journal of Supercomputing, 2019, 75 : 3997 - 4000
  • [49] The Study on Software Architecture Smell Refactoring
    Kuo, Jong-Yih
    Hsieh, Ti-Feng
    Lin, Yu-De
    Lin, Hui-Chi
    INTERNATIONAL JOURNAL OF SOFTWARE INNOVATION, 2024, 12 (01)
  • [50] Refactoring software to heterogeneous parallel platforms
    Daniel Garcia, J.
    JOURNAL OF SUPERCOMPUTING, 2019, 75 (08): : 3997 - 4000