kirancodes.me
To Proof Maintenance & Beyond!

Identifying method friendships to remove the feature envy bad smell

Rocco Oliveto, Malcom Gethers, Gabriele Bavota, Denys Poshyvanyk, Andrea De Lucia

Abstract

We propose a novel approach to identify Move Method refactoring opportunities and remove the Feature Envy bad smell from source code. The proposed approach analyzes both structural and conceptual relationships between methods and uses Relational Topic Models to identify sets of methods that share several responsabilities, i.e., 'friend methods'. The analysis of method friendships of a given method can be used to pinpoint the target class (envied class) where the method should be moved in. The results of a preliminary empirical evaluation indicate that the proposed approach provides meaningful refactoring opportunities.

BibTeX
@inproceedings{Oliveto-al:ICSE11,
  author    = {Rocco Oliveto and
               Malcom Gethers and
               Gabriele Bavota and
               Denys Poshyvanyk and
               Andrea De Lucia},
  title     = {Identifying method friendships to remove the feature envy bad smell},
  booktitle = {ICSE},
  pages     = {820--823},
  publisher = {{ACM}},
  year      = {2011},
}

Related papers