Back to Search Start Over

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

Authors :
Goto, Akira
Yoshida, Norihiro
Ioka, Masakazu
Choi, Eunjong
Inoue, Katsuro
Source :
2013 7th International Workshop on Software Clones (IWSC); 2013, p23-29, 7p
Publication Year :
2013

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. [ABSTRACT FROM PUBLISHER]

Details

Language :
English
ISBNs :
9781467364454
Database :
Complementary Index
Journal :
2013 7th International Workshop on Software Clones (IWSC)
Publication Type :
Conference
Accession number :
94559729
Full Text :
https://doi.org/10.1109/IWSC.2013.6613038