Empirical study of abnormality in local variables and its application to fault‐prone Java method analysis. Issue 4 (24th October 2019)
- Record Type:
- Journal Article
- Title:
- Empirical study of abnormality in local variables and its application to fault‐prone Java method analysis. Issue 4 (24th October 2019)
- Main Title:
- Empirical study of abnormality in local variables and its application to fault‐prone Java method analysis
- Authors:
- Aman, Hirohisa
Amasaki, Sousuke
Yokogawa, Tomoyuki
Kawahara, Minoru - Abstract:
- Abstract: Programmers are familiar with local variables, and in many cases, they can freely define the local variables they use. Thus, the properties of these variables are widely diverse, and this may cause variations in the quality of code. Although variables are named in accordance with coding conventions, the following matters have not received much attention from an empirical viewpoint: automatically deciding whether a local variable is "abnormal" and determining the harmful effect of an abnormal variable. This study focuses on the trends in the name, type, and scope of local variables, then proposes the use of the Mahalanobis distance to evaluate their abnormality. The empirical study entailed collecting local variables from eight open‐source software projects, and the paper reports the following findings: (a) the trend in the variation of the names of variables according to their type; (b) the majority of variables have short names with narrow scopes, where a name is often a word or an abbreviation thereof; (c) methods with an abnormal variable are approximately 1.4 times more likely to be fault prone than methods that contain only normal variables; (d) the proposed abnormality metric can be useful in a random forest‐based fault‐prone method analysis model.
- Is Part Of:
- Journal of software. Volume 32:Issue 4(2020)
- Journal:
- Journal of software
- Issue:
- Volume 32:Issue 4(2020)
- Issue Display:
- Volume 32, Issue 4 (2020)
- Year:
- 2020
- Volume:
- 32
- Issue:
- 4
- Issue Sort Value:
- 2020-0032-0004-0000
- Page Start:
- n/a
- Page End:
- n/a
- Publication Date:
- 2019-10-24
- Subjects:
- abnormality -- fault‐prone method analysis -- local variable -- Mahalanobis distance -- naming -- scope
Software engineering -- Periodicals
Computer software -- Development -- Periodicals
Software maintenance -- Periodicals
005.1 - Journal URLs:
- http://onlinelibrary.wiley.com/journal/10.1002/(ISSN)2047-7481 ↗
http://onlinelibrary.wiley.com/ ↗ - DOI:
- 10.1002/smr.2220 ↗
- Languages:
- English
- ISSNs:
- 2047-7473
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 14800.xml