In software engineering, energy efficiency is an influential factor in the software development and maintenance especially for battery-limited devices. While refactoring can improve the quality of software, recent studies suggest that some refactoring operations may lead to conflicts with energy consumption and execution time of Android applications. In this paper, we analyze the impact of code refactoring for eight Android/Java bad code smells and anti-patterns on a testbed of five real and one synthetic Android application. We measure energy consumption, execution time and quality design of application before and after refactoring. We then propose a novel refactoring recommendation approach based on evolutionary multi-objective optimization that accounts for energy consumption, execution time and refactoring effort for Android/Java anti-patterns. For this purpose, we use Nondominated Sorting Genetic Algorithm-II (NSGA-II) with three objectives: 1) energy consumption, 2) execution time, and 3) refactoring effort. The obtained results show that this approach can generate refactoring recommendations with a median precision of 65% and 76% for improving energy and execution time respectively while the median of removed antipatterns in testbed applications is 42%.
Zamzame, M. , Sedighian Kashi, S. and Nikanjam, A. (2023). Energy-Aware Evolutionary Multi-Objective Refactoring for Bad Code Smells Correction of Android Applications. Soft Computing Journal, (), -. doi: 10.22052/scj.2023.246479.1074
MLA
Zamzame, M. , , Sedighian Kashi, S. , and Nikanjam, A. . "Energy-Aware Evolutionary Multi-Objective Refactoring for Bad Code Smells Correction of Android Applications", Soft Computing Journal, , , 2023, -. doi: 10.22052/scj.2023.246479.1074
HARVARD
Zamzame, M., Sedighian Kashi, S., Nikanjam, A. (2023). 'Energy-Aware Evolutionary Multi-Objective Refactoring for Bad Code Smells Correction of Android Applications', Soft Computing Journal, (), pp. -. doi: 10.22052/scj.2023.246479.1074
CHICAGO
M. Zamzame , S. Sedighian Kashi and A. Nikanjam, "Energy-Aware Evolutionary Multi-Objective Refactoring for Bad Code Smells Correction of Android Applications," Soft Computing Journal, (2023): -, doi: 10.22052/scj.2023.246479.1074
VANCOUVER
Zamzame, M., Sedighian Kashi, S., Nikanjam, A. Energy-Aware Evolutionary Multi-Objective Refactoring for Bad Code Smells Correction of Android Applications. Soft Computing Journal, 2023; (): -. doi: 10.22052/scj.2023.246479.1074