首页> 外文会议>IEEE International Conference on Software Maintenance >Identification of Refused Bequest Code Smells
【24h】

Identification of Refused Bequest Code Smells

机译:识别拒绝雷华代码的味道

获取原文

摘要

Accumulated technical debt can be alleviated by means of refactoring application aiming at architectural improvement. A prerequisite for wide scale refactoring application is the automated identification of the corresponding refactoring opportunities, or code smells. One of the major architectural problems that has received limited attention is the so called 'Refused Bequest' which refers to inappropriate use of inheritance in object-oriented systems. This code smell occurs when subclasses do not take advantage of the inherited behavior, implying that replacement by delegation should be used instead. In this paper we propose a technique for the identification of Refused Bequest code smells whose major novelty lies in the intentional introduction of errors in the inherited methods. The essence of inheritance is evaluated by exercising the system's functionality through the corresponding unit tests in order to reveal whether inherited methods are actually employed by clients. Based on the results of this approach and other structural information, an indication of the smell strength on a 'thermometer' is obtained. The proposed approach has been implemented as an Eclipse plug in.
机译:通过旨在实现建筑改进的重构申请,可以减轻累计的技术债务。广泛重构应用程序的先决条件是自动识别相应的重构机会或代码闻。接受有限关注的主要架构问题之一是所谓的“拒绝遗赠”,这是指面向对象系统中的继承的不恰当使用。当子类不利用继承的行为时,将发生此代码Smell,这意味着应该使用委派的替代。在本文中,我们提出了一种识别拒绝招聘代码闻的技术,其主要新颖性在于在故意引入继承方法中的错误。通过通过相应的单元测试锻炼系统的功能来评估继承的本质,以揭示客户端实际使用继承的方法。基于该方法的结果和其他结构信息,获得了“温度计”上的嗅觉强度的指示。所提出的方法已实施为Eclipse插头。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号