Measuring the Refactoring Risk of Modules Using Software Clustering

ZHU Tianmei,WU Yijian,PENG Xin,ZHAO Wenyun
DOI: https://doi.org/10.3778/j.issn.1673-9418.2012.06.004
2012-01-01
Abstract:As software evolves,its modularity gradually degrades.Software refactoring is an important means for software modularity adjustment,but which modules are most in need of refactoring is difficult to predict.This paper proposes a novel approach for measuring the refactoring risk of modules by software clustering.Using structural clustering and semantic clustering,two different kinds of implied modularity views can be recovered from the implementation as reference modularity.By comparing the differences between the realistic modular structure and the reference modular structure,modules with high refactoring risk are identified.A comparative experiment conducted on three open source softwares shows that the predicting result produced by the proposed approach conforms well to the actual refactoring activities,indicating the effectiveness of the proposed approach.
What problem does this paper attempt to address?