{"title":"Recommendation of move method refactorings using coupling, cohesion and contextual similarity","authors":"Md. Masudur Rahman, Rashed Rubby Riyadh, Md. Rayhanur Rahman","doi":"10.1109/ICIVPR.2017.7890876","DOIUrl":null,"url":null,"abstract":"Method placement is one of the most important design activities in any object oriented application. Recommendation of move method refactorings plays a significant role through grouping similar behavior of methods. It is also used as a refactoring technique of feature envy code smell by placing methods into correct classes from the incorrect ones. Due to this code smell, an application will be tightly coupled and loosely cohesive which reflect poor design and hence development and maintenance effort, time and cost will be increased. Existing techniques mostly used only non-static methods for refactoring the code smell and so these approaches are not generalized for all types of methods (static and non-static). This paper proposes a novel approach for recommending move method refactorings to remove the code smell for both types of methods based on coupling, cohesion and context. The results of a preliminary empirical evaluation indicate that the proposed approach provides better results than JDeodorant (a popular eclipse plugin for refactorings).","PeriodicalId":126745,"journal":{"name":"2017 IEEE International Conference on Imaging, Vision & Pattern Recognition (icIVPR)","volume":"30 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2017 IEEE International Conference on Imaging, Vision & Pattern Recognition (icIVPR)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICIVPR.2017.7890876","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2
Abstract
Method placement is one of the most important design activities in any object oriented application. Recommendation of move method refactorings plays a significant role through grouping similar behavior of methods. It is also used as a refactoring technique of feature envy code smell by placing methods into correct classes from the incorrect ones. Due to this code smell, an application will be tightly coupled and loosely cohesive which reflect poor design and hence development and maintenance effort, time and cost will be increased. Existing techniques mostly used only non-static methods for refactoring the code smell and so these approaches are not generalized for all types of methods (static and non-static). This paper proposes a novel approach for recommending move method refactorings to remove the code smell for both types of methods based on coupling, cohesion and context. The results of a preliminary empirical evaluation indicate that the proposed approach provides better results than JDeodorant (a popular eclipse plugin for refactorings).