Options
Refactoring opportunities for replacing type code with state and subclass
Date Issued
30-06-2017
Author(s)
Vedurada, Jyothi
Indian Institute of Technology, Madras
Abstract
Refactoring restructures a program to improve itsreadability and maintainability, without changing its originalbehavior. One of the key steps in refactoring is the identification ofpotential refactoring opportunities. In this paper, we discuss therelevance of two popular refactorings 'Replace Type Code withSubclass' and 'Replace Type Code with State' in real world Javaapplications and describe some of the challenges in automaticallyidentifying these refactoring opportunities.