本文已被:浏览 1576次 下载 2050次
Received:January 21, 2018
Received:January 21, 2018
中文摘要: 在现代软件开发和维护中,重构是提高软件可维护性和软件质量的常用手段.而大量重构模式掺杂在日常的bug修复、功能增加等代码变更中,使得变更理解变得非常复杂.识别重构模式可以将重构与其它类型的代码变更隔离,利于变更理解.目前在识别重构模式的相关研究中,并没有结合变更类型和相似性比较的识别重构模式的方法及工具.为此,提出了一种基于细粒度变更类型和文本相似性比较识别重构模式的方法.将该方法应用于抽取类重构模式,并在4个开源项目中进行了实验,其平均准确率在82.6%左右.
Abstract:Refactoring is a common way of improving software maintainability and software quality in modern software development and maintenance. In daily revision, refactoring patterns usually mix with code changes accomplishing other tasks such as bug fixing and feature addition, which makes the change understanding very complicated. It facilitates changes understanding to identify refactoring patterns that can isolate refactoring from other types of code changes. As far as I am concerned, there is no method and tool which have been proposed to identify code refactoring by code change types and similarity comparison. We proposed An identifying algorithm for refactoring patterns, based on fine-grained changes type and text similarity. The algorithm is used for refactoring patterns of extract class. The algorithm has been tested on 4 open source projects, with an average 82.6% accuracy.
文章编号: 中图分类号: 文献标志码:
基金项目:国家自然科学基金(61502259)
引用文本:
孙美荣,杨春花.代码变更中抽取类重构模式的识别.计算机系统应用,2018,27(9):188-192
SUN Mei-Rong,YANG Chun-Hua.Identifying Extract Class Refactoring Patterns from Code Changes.COMPUTER SYSTEMS APPLICATIONS,2018,27(9):188-192
孙美荣,杨春花.代码变更中抽取类重构模式的识别.计算机系统应用,2018,27(9):188-192
SUN Mei-Rong,YANG Chun-Hua.Identifying Extract Class Refactoring Patterns from Code Changes.COMPUTER SYSTEMS APPLICATIONS,2018,27(9):188-192