Java 方法命名建议的实证研究:我们做到了吗?
软件工程
2022-01-24 v1
摘要
对当前命名方法的大规模评估证实此类方法准确。然而,哪类方法名可通过此类命名方法良好工作、以及命名方法的性能如何,尚知之甚少。为指出当前命名方法的优越性,本文在一个新数据集上对此类方法开展实证研究。此外,我们分析上述成功的命名方法,发现:(1) 约 60% 被接受的推荐名基于 get、set、is 和 test 前缀给出。(2) 成功推荐的方法名中有很大比例(19.3%)可由给定方法体推导得出。比较也证明了该实证研究的优越性能。
引用
@article{arxiv.2201.08570,
title = {An empirical study on Java method name suggestion: are we there yet?},
author = {Weidong Wang and Yujian Kang and Dian Li},
journal= {arXiv preprint arXiv:2201.08570},
year = {2022}
}