• DocumentCode
    3237507
  • Title

    How to extract differences from similar programs? A cohesion metric approach

  • Author

    Goto, Akira ; Yoshida, Norihiro ; Ioka, Masakazu ; Eunjong Choi ; Inoue, Ken

  • Author_Institution
    Grad. Sch. of Inf. Sci. & Technol., Osaka Univ., Suita, Japan
  • fYear
    2013
  • fDate
    19-19 May 2013
  • Firstpage
    23
  • Lastpage
    29
  • Abstract
    Merging similar programs is a promising solution to improve the maintainability of source code. Before merging programs, any syntactic difference has to be extracted as a new method. However, it is difficult for a developer to identify and extract differences from programs appropriately because he/she has to consider not only syntactic and semantic correctness but also the modularity of the programs after merging. In this paper, we propose a slice-based cohesion metrics approach to suggesting the extractions of differences from similar Java methods. This approach identifies syntactic differences from two methods, and then suggests sets of cohesive regions including those differences. The case study shows that the proposed approach can suggest refactorings that not only merge two methods but also increase the cohesiveness.
  • Keywords
    Java; configuration management; software maintenance; software metrics; Java methods; cohesive regions; program merging; refactoring; similar program differences extraction; slice-based cohesion metrics approach; syntactic differences; Educational institutions; Java; Measurement; Merging; Open source software; Syntactics; Tin;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Clones (IWSC), 2013 7th International Workshop on
  • Conference_Location
    San Francisco, CA
  • Type

    conf

  • DOI
    10.1109/IWSC.2013.6613038
  • Filename
    6613038