Automatic code locations identification for replacing temporary variable with query method
Songsakdi Rongviriyapanish, Nopphawit Karunlanchakorn, Panita Meananeatra · 2015
Automatic application of refactoring techniques can help developer save effort for removing bad smells from their code which improves software maintainability. To remove automatically long method bad smell, which is one of the most serious bad smells, we need an automatic application of six refactoring techniques. However, only one refactoring technique “Extract Method” can be automated. In this research, we propose an algorithm to identify code locations which will be extracted for creating a query method. We performed an experiment to conclude the workability and correctness of our algorithm. This is the most important step towards an automatic application of refactoring technique “replace temp with query”.