arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1006.1747cs.SE
收藏

关于程序中高影响重构机会的检测

On the Detection of High-Impact Refactoring Opportunities in Programs

Jens Dietrich, Catherine McCartin, Ewan Tempero, Syed M. Ali Shah

摘要:

我们提出了一种新的方法来检测重构的机会,通过测量的参与模式代表设计缺陷的实例类型之间的引用。这种技术的验证使用一个实验,我们分析了一组95个开源的Java程序的实例,代表模块化问题的四种模式。事实证明,我们的算法可以检测到高影响重构的机会-少量的引用,这样删除这些引用就可以从程序中删除大部分模式。

英文摘要:

We present a novel approach to detect refactoring opportunities by measuring the participation of references between types in instances of patterns representing design flaws. This technique is validated using an experiment where we analyse a set of 95 open-source Java programs for instances of four patterns representing modularisation problems. It turns out that our algorithm can detect high impact refactorings opportunities - a small number of references such that the removal of those references removes the majority of patterns from the program.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑