首页> 外文会议>International Conference on Software Engineering >Clone Refactoring with Lambda Expressions
【24h】

Clone Refactoring with Lambda Expressions

机译:使用Lambda表达式进行克隆重构

获取原文

摘要

Lambda expressions have been introduced in Java 8 to support functional programming and enable behavior parameterization by passing functions as parameters to methods. The majority of software clones (duplicated code) are known to have behavioral differences (i.e., Type-2 and Type-3 clones). However, to the best of our knowledge, there is no previous work to investigate the utility of Lambda expressions for parameterizing such behavioral differences in clones. In this paper, we propose a technique that examines the applicability of Lambda expressions for the refactoring of clones with behavioral differences. Moreover, we empirically investigate the applicability and characteristics of the Lambda expressions introduced to refactor a large dataset of clones. Our findings show that Lambda expressions enable the refactoring of a significant portion of clones that could not be refactored by any other means.
机译:Lambda表达式已在Java 8中引入,以支持功能编程并通过将函数作为参数传递给方法来实现行为参数化。已知大多数软件克隆(重复代码)具有行为差异(即Type-2和Type-3克隆)。但是,据我们所知,尚无以前的工作来研究Lambda表达式用于参数化克隆中这种行为差异的效用。在本文中,我们提出了一种技术,该技术检查Lambda表达式在具有行为差异的克隆的重构中的适用性。此外,我们根据经验研究了引入Lambda表达式以重构大型克隆数据集的适用性和特征。我们的发现表明,Lambda表达能够重构很大一部分克隆,而这些克隆是无法通过任何其他方式重构的。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号