首页> 外文期刊>ACM transactions on software engineering and methodology >Detecting Missing Method Calls As Violations of the Majority Rule
【24h】

Detecting Missing Method Calls As Violations of the Majority Rule

机译:检测缺少的方法调用违反多数规则

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

摘要

When using object-oriented frameworks it is easy to overlook certain important method calls that are required at particular places in code. In this article, we provide a comprehensive set of empirical facts on this problem, starting from traces of missing method calls in a bug repository. We propose a new system that searches for missing method calls in software based on the other method calls that are observable. Our key insight is that the voting theory concept of majority rule holds for method calls: a call is likely to be missing if there is a majority of similar pieces of code where this call is present. The evaluation shows that the system predictions go further missing method calls and often reveal different kinds of code smells (e.g., violations of API best practices).
机译:使用面向对象的框架时,很容易忽略代码中特定位置所需的某些重要方法调用。在本文中,我们从错误存储库中缺少方法调用的痕迹开始,提供了有关此问题的全面的经验事实集。我们提出了一种新系统,该系统可以根据其他可观察到的方法调用在软件中搜索缺少的方法调用。我们的主要见识在于,多数规则的投票理论概念适用于方法调用:如果存在大量类似的代码段,那么该调用很可能会丢失。评估表明,系统预测会进一步遗漏方法调用,并经常揭示出不同类型的代码味道(例如,违反API最佳实践)。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号