Title :
Identifying method friendships to remove the feature envy bad smell: NIER track
Author :
Oliveto, Rocco ; Gethers, Malcom ; Bavota, Gabriele ; Poshyvanyk, Denys ; De Lucia, Andrea
Author_Institution :
Univ. of Molise, Pesche, Italy
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.
Keywords :
program compilers; software maintenance; NIER track; feature envy bad smell; method friendships identification; move method refactoring opportunities; relational topic models; source code; Accuracy; Couplings; Educational institutions; Facebook; Measurement; Reliability; Software; refactoring; relational topic model; source code quality;
Conference_Titel :
Software Engineering (ICSE), 2011 33rd International Conference on
Conference_Location :
Honolulu, HI
Print_ISBN :
978-1-4503-0445-0
Electronic_ISBN :
0270-5257
DOI :
10.1145/1985793.1985913