Domestic Conference

リファクタリングの抽出・適用によるソースコード差分の理解支援

Supporting the Understanding of Source Code Difference by Extracting and Applying Refactorings

タンタムマチット シリナット, 林 晋平, 佐伯 元司

Sirinut Thangthumachit, Shinpei Hayashi, Motoshi Saeki

In ソフトウェアエンジニアリング最前線2010 --- ソフトウェアエンジニアリングシンポジウム2010予稿集 (SES 2010), pp. 17–20, 東洋大学 白山キャンパス, 東京, August 2010.

ソフトウェアエンジニアリングシンポジウム2010学生奨励賞 SES 2010 Student Award

Abstract

ソフトウェア開発では,様々な場面で,同じプロジェクトの新旧版を比較し,そのソースコード差分を理解する.しかし,リファクタリングが行われた版間ではリファクタリングとそうでない変更の差分が混在し,理解が難しくなる.本稿では,ソースコード差分からリファクタリングを抽出し, ソースコードに適用することにより,新旧版間のリファクタリングの影響を除外する手法を提案する.また,抽出したリファクタリングの逆操作を新版に適用し,旧版の識別子で表す差分の表示方法も提案した.支援ツールを実装し,予備評価を行った結果では,平均で19%以上のソースコード差分を減少させることができた.

Abstract (English)

In various situations of software development, comparing and understanding the difference between old and new versions of project is required. However, if refactorings are performed between those versions, the source code difference will be intermingled and the understanding will become difficult. In this paper, we propose a technique to support the understanding of source code difference by extracting the refactorings and performing them to the source code. We also propose the old-version-view which shows the difference by using the elements of the old version. Finally, we have developed a support tool and applied it to several programs. The result shown that our technique can decrease more than 19 percent of source code difference in average.

BibTeX

@incollection{zui-ses2010,
    author = {タンタムマチット シリナット and 林 晋平 and 佐伯 元司},
    title = {リファクタリングの抽出・適用によるソースコード差分の理解支援},
    booktitle = {ソフトウェアエンジニアリング最前線2010 --- ソフトウェアエンジニアリングシンポジウム2010予稿集},
    pages = {17--20},
    year = 2010,
}
Type
Domestic Conference
Conference
SES 2010
Location
東洋大学 白山キャンパス, 東京
Presented
August 31, 2010
Volume / Pages
pp. 17–20