講演抄録/キーワード |
講演名 |
2014-05-08 14:50
処理の委譲の有無に基づくリファクタリング支援手法 ○高 良多朗・堀田圭佑・肥後芳樹・井垣 宏・楠本真二(阪大) SS2014-2 |
抄録 |
(和) |
近年,ソフトウェア保守作業の効率を高める手段としてリファクタリングが注目されるようになり,
様々な視点からリファクタリングを支援する手法が提案されている.
オブジェクト指向言語においては,メソッドの長さや複雑度などのメトリクス値に着目して
リファクタリング候補を特定する手法が多数存在しているが,
実際にリファクタリングを適用すべきかの判断が難しい場合がある.
著者らは,上述のメトリクス値によって特定のコードだけを評価するのでなく,
類似した処理を行う複数のコードでの比較を行うことで
リファクタリングの検討が容易になるのではないかと考えた.
そこで本研究では,メソッドが行う処理の委譲の有無に着目し,
これが一貫していないコードをリファクタリング候補として特定する手法を提案する.
また,提案手法を開発者が異なる複数のソフトウェアに対して実験を行った結果,
類似した処理を実装しており,かつ,処理の委譲の有無が異なる箇所が存在することが確認できた. |
(英) |
Refactoring has attracted attention for software maintenance.
Therefore, many approaches supporting refactoring have been proposed
from a variety of viewpoints.
In object-oriented languages, most of the approaches suggest refactoring candidates
by using code metrics such as length or complexity for each of methods.
However, it may be difficult to judge whether those candidates should be refactored.
The authors conjectured that comparing some source code makes judging candidates
easier than checking source code individually.
Therefore, this paper proposes an approach identifying refactoring candidates by using presence of delegation.
We experimented the proposed approach on different developers' software.
As a result, the proposed approach was able to suggest several code portions that performs
similar procedures and varies in presence of delegation functionality as refactoring candidates. |
キーワード |
(和) |
ソフトウェア保守 / ソースコード解析 / ソースコード理解 / リファクタリング / / / / |
(英) |
Software Maintenance / Source Code Analysis / Source Code Understanding / Refactoring / / / / |
文献情報 |
信学技報, vol. 114, no. 23, SS2014-2, pp. 7-12, 2014年5月. |
資料番号 |
SS2014-2 |
発行日 |
2014-05-01 (SS) |
ISSN |
Print edition: ISSN 0913-5685 Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
査読に ついて |
本技術報告は査読を経ていない技術報告であり,推敲を加えられていずれかの場に発表されることがあります. |
PDFダウンロード |
SS2014-2 |