SANER 2017

2017 IEEE 24th International Conference on Software Analysis, Evolution, and Reengineering (SANER), February 20-24, 2017, Klagenfurt, Austria

Desktop Layout

Static Analysis and Refactoring
Tool Demonstrations
c-JRefRec: Change-Based Identification of Move Method Refactoring Opportunities
Naoya Ujihara, Ali Ouni, Takashi Ishio, and Katsuro Inoue
(Osaka University, Japan; United Arab Emirates University, United Arab Emirates)
Abstract: We propose, in this paper, a lightweight refactoring recommendation tool, namely c-JRefRec, to identify Move Method refactoring opportunities based on four heuristics using static and semantic program analysis. Our tool aims at identiying refactoring opportunities before a code change is committed to the codebase based on current code changes whenever the developer saves/compiles his code. We evaluate the efficiency of our approach in detecting Feature Envy smells and recommending Move Method refactorings to fix them on three Java open-source systems and 30 code changes. Results show that our approach achieves an average precision of 0.48 and 0.73 of recall and outperforms a state-of-the-art approach namely JDeodorant.


Time stamp: 2020-02-27T18:42:26+01:00