Identifying extract-method refactoring candidates automatically

  • Authors:
  • Tushar Sharma

  • Affiliations:
  • Siemens Corporate Research and Technologies, Bangalore, India

  • Venue:
  • Proceedings of the Fifth Workshop on Refactoring Tools
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Refactoring becomes an essential activity in software development process especially for large and long life projects. Extract-method is one of the most frequently used refactorings to address code smells such as long and incohesive methods, and duplicated code. Automated means of identifying opportunities for refactoring can make the software development process faster and more efficient. In this paper, an abstraction for methods viz. Data and Structure Dependency (DSD) graph and an algorithm viz. longest edge removal algorithm to find extract-method refactoring candidates is proposed.