MORCoRA: Multi-Objective Refactoring Recommendation Considering Review Availability

被引:0
|
作者
Chen, Lei [1 ]
Hayashi, Shinpei [1 ]
机构
[1] Tokyo Inst Technol, Sch Comp, Ookayama 2-12-1,Meguro Ku, Tokyo 1528550, Japan
关键词
Search-based software engineering; multi-objective search; refactoring; review availability; NONDOMINATED SORTING APPROACH; GENETIC ALGORITHM; MODEL;
D O I
10.1142/S0218194024500438
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Background: Search-based refactoring involves searching for a sequence of refactorings to achieve specific objectives. Although a typical objective is improving code quality, a different perspective is also required; the searched sequence must undergo review before being applied and may not be applied if the review fails or is postponed due to no proper reviewers. Aim: Therefore, it is essential to ensure that the searched sequence of refactorings can be reviewed promptly by reviewers who meet two criteria: (1) having enough expertise and (2) being free of heavy workload. The two criteria are regarded as the review availability of the refactoring sequence. Method: We propose MORCoRA, a multi-objective search-based technique that can search for code quality improvable, semantic preserved, and high review availability possessed refactoring sequences and corresponding proper reviewers. Results: We evaluate MORCoRA on six open-source repositories. The quantitative analysis reveals that MORCoRA can effectively recommend refactoring sequences that fit the requirements. The qualitative analysis demonstrates that the refactorings recommended by MORCoRA can enhance code quality and effectively address code smells. Furthermore, the recommended reviewers for those refactorings possess high expertise and are available to review. Conclusions: We recommend that refactoring recommenders consider both the impact on quality improvement and the developer resources required for review when recommending refactorings.
引用
收藏
页码:1919 / 1947
页数:29
相关论文
共 50 条
  • [21] On the impact of Performance Antipatterns in multi-objective software model refactoring optimization
    Cortellessa, Vittorio
    Di Pompeo, Daniele
    Stoico, Vincenzo
    Tucci, Michele
    2021 47TH EUROMICRO CONFERENCE ON SOFTWARE ENGINEERING AND ADVANCED APPLICATIONS (SEAA 2021), 2021, : 224 - 233
  • [22] A robust multi-objective approach to balance severity and importance of refactoring opportunities
    Mkaouer, Mohamed Wiem
    Kessentini, Marouane
    Cinneide, Mel O.
    Hayashi, Shinpei
    Deb, Kalyanmoy
    EMPIRICAL SOFTWARE ENGINEERING, 2017, 22 (02) : 894 - 927
  • [23] A robust multi-objective approach to balance severity and importance of refactoring opportunities
    Mohamed Wiem Mkaouer
    Marouane Kessentini
    Mel Ó Cinnéide
    Shinpei Hayashi
    Kalyanmoy Deb
    Empirical Software Engineering, 2017, 22 : 894 - 927
  • [24] A novel multi-objective evolutionary algorithm for recommendation systems
    Cui, Laizhong
    Ou, Peng
    Fu, Xianghua
    Wen, Zhenkun
    Lu, Nan
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2017, 103 : 53 - 63
  • [25] Multi-objective redundancy allocation problem for a system with repairable components considering instantaneous availability and strategy selection
    Kayedpour, Farjam
    Amiri, Maghsoud
    Rafizadeh, Mahmoud
    Nia, Arash Shahryari
    RELIABILITY ENGINEERING & SYSTEM SAFETY, 2017, 160 : 11 - 20
  • [26] Search-based software library recommendation using multi-objective optimization
    Ouni, Ali
    Kula, Raula Gaikovina
    Kessentini, Marouane
    Ishio, Takashi
    German, Daniel M.
    Inoue, Katsuro
    INFORMATION AND SOFTWARE TECHNOLOGY, 2017, 83 : 55 - 75
  • [27] Maximizing Refactoring Coverage in an Automated Maintenance Approach using Multi-Objective Optimization
    Mohan, Michael
    Greer, Des
    McMullan, Paul
    2019 IEEE/ACM 3RD INTERNATIONAL WORKSHOP ON REFACTORING (IWOR 2019), 2019, : 31 - 38
  • [28] Multi-objective transmission expansion planning considering multiple generation scenarios
    Correa Florez, Carlos A.
    Bolanos Ocampo, Ricardo A.
    Escobar Zuluaga, Antonio H.
    INTERNATIONAL JOURNAL OF ELECTRICAL POWER & ENERGY SYSTEMS, 2014, 62 : 398 - 409
  • [29] Multi-objective Optimization of Urban Water Allocation Considering Recycled Water
    Chen, Siwei
    Xu, Yue-Ping
    Guo, Yuxue
    Yu, Xinting
    WATER RESOURCES MANAGEMENT, 2025, : 2615 - 2631
  • [30] Multi-view refactoring of class and activity diagrams using a multi-objective evolutionary algorithm
    Usman Mansoor
    Marouane Kessentini
    Manuel Wimmer
    Kalyanmoy Deb
    Software Quality Journal, 2017, 25 : 473 - 501