PlumX Metrics
Embed PlumX Metrics

Finding needles in a haystack: Leveraging co-change dependencies to recommend refactorings

Journal of Systems and Software, ISSN: 0164-1212, Vol: 158, Page: 110420
2019
  • 11
    Citations
  • 226
    Usage
  • 59
    Captures
  • 0
    Mentions
  • 2
    Social Media
Metric Options:   Counts1 Year3 Year

Metrics Details

Article Description

A fine-grained co-change dependency arises when two fine-grained source-code entities, e.g., a method, change frequently together. This kind of dependency is relevant when considering remodularization efforts (e.g., to keep methods that change together in the same class). However, existing approaches for recommending refactorings that change software decomposition (such as a move method) do not explore the use of fine-grained co-change dependencies. In this paper we present a novel approach for recommending move method and move field refactorings, which removes co-change dependencies and evolutionary smells, a particular type of dependency that arise when fine-grained entities that belong to different classes frequently change together. First we evaluate our approach using 49 open-source Java projects, finding 610 evolutionary smells. Our approach automatically computes 56 refactoring recommendations that remove these evolutionary smells, without introducing new static dependencies. We also evaluate our approach by submitting pull-requests with the recommendations of our technique, in the context of one large and two medium size proprietary Java systems. Quantitative results show that our approach outperforms existing approaches for recommending refactorings when dealing with co-change dependencies. Qualitative results show that our approach is promising, not only for recommending refactorings but also to reveal opportunities of design improvements.

Provide Feedback

Have ideas for a new metric? Would you like to see something else here?Let us know