...
首页> 外文期刊>Expert Systems with Application >AutoRefactoring: A platform to build refactoring agents
【24h】

AutoRefactoring: A platform to build refactoring agents

机译:自动重构:构建重构代理的平台

获取原文
获取原文并翻译 | 示例
           

摘要

Software maintenance may degrade the software quality. One of the primary ways to reduce undesired effects of maintenance is refactoring, which is a technique to improve software code quality without changing its observable behavior. To safely apply a refactoring, several issues must be considered: (ⅰ) identify the code parts that should be improved; (ⅱ) determine the changes that must be applied to the code in order to improve its; (ⅲ) evaluate the corrections impacts on code quality; and (ⅳ) check that the observable behavior of the software will be preserved after applying the corrections. Given the amount of issues to consider, refactoring by hand has been assumed to be an expensive and error-prone task. Therefore, in this paper, we propose an agent-based platform that enables to implement an agent able to autonomously deal with the above mentioned refactoring issues. To evaluate our approach, we performed an empirical study on code smells detection and correction, code quality improvement and preservation of the software observable behavior. To answer our research questions, we analyze 5 releases of Java open source projects, ranging from 166 to 711 classes.
机译:软件维护可能会降低软件质量。减少不必要的维护影响的主要方法之一是重构,它是一种在不更改其可观察行为的情况下提高软件代码质量的技术。为了安全地应用重构,必须考虑几个问题:(ⅰ)确定应改进的代码部分; (ⅱ)确定必须对代码进行的更改以改进其代码; (ⅲ)评估更正对代码质量的影响; (ⅳ)检查在应用更正后将保留软件的可观察行为。考虑到要考虑的问题数量,手工重构已被认为是一项昂贵且容易出错的任务。因此,在本文中,我们提出了一个基于代理的平台,该平台能够实现能够自主处理上述重构问题的代理。为了评估我们的方法,我们对代码气味的检测和纠正,代码质量的改进以及软件可观察行为的保留进行了实证研究。为了回答我们的研究问题,我们分析了Java开源项目的5个发行版,范围从166到711类。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号