跳到主要导航 跳到搜索 跳到主要内容

Identifying Renaming Opportunities by Expanding Conducted Rename Refactorings

  • Hui Liu
  • , Qiurong Liu
  • , Yang Liu
  • , Zhouding Wang
  • Beijing Institute of Technology

科研成果: 期刊稿件文章同行评审

摘要

To facilitate software refactoring, a number of approaches and tools have been proposed to suggest where refactorings should be conducted. However, identification of such refactoring opportunities is usually difficult because it often involves difficult semantic analysis and it is often influenced by many factors besides source code. For example, whether a software entity should be renamed depends on the meaning of its original name (natural language understanding), the semantics of the entity (source code semantics), experience and preference of developers, and culture of companies. As a result, it is difficult to identify renaming opportunities. To this end, in this paper we propose an approach to identify renaming opportunities by expanding conducted renamings. Once a rename refactoring is conducted manually or with tool support, the proposed approach recommends to rename closely related software entities whose names are similar to that of the renamed entity. The rationale is that if an engineer makes a mistake in naming a software entity it is likely for her to make the same mistake in naming similar and closely related software entities. The main advantage of the proposed approach is that it does not involve difficult semantic analysis of source code or complex natural language understanding. Another advantage of this approach is that it is less influenced by subjective factors, e.g., experience and preference of software engineers. The proposed approach has been evaluated on four open-source applications. Our evaluation results show that the proposed approach is accurate in recommending entities to be renamed (average precision 82 percent) and in recommending new names for such entities (average precision 93 percent). Evaluation results also suggest that a substantial percentage (varying from 20 to 23 percent) of rename refactorings are expansible.

源语言英语
期刊论文编号7097720
页(从-至)887-900
页数14
期刊IEEE Transactions on Software Engineering
41
9
DOI
出版状态已出版 - 1 9月 2015

学术指纹

探究 'Identifying Renaming Opportunities by Expanding Conducted Rename Refactorings' 的科研主题。它们共同构成独一无二的学术指纹。

引用此