arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.01965cs.SEcs.PL
收藏

Java注解在实践中的使用、演变和影响

Characterizing the Usage, Evolution and Impact of Java Annotations in Practice

Zhongxing Yu, Chenggang Bai, Lionel Seinturier, Martin Monperrus

摘要:

注释自Java 5开始正式引入Java。从那时起,注释被Java社区广泛用于不同的目的,例如编译器指导和运行时处理。尽管使用不断增长,但关于注释在实践中的实际使用,软件演化期间对注释的更改以及注释对代码质量的潜在影响的经验知识仍然有限。为了填补这一空白,我们对GitHub上托管的1,094个著名开源项目进行了第一次关于Java注释的大规模实证研究。我们的研究系统地调查了注释的使用,注释的演变和注释的影响,并产生了10个新的和重要的发现。我们还提出了我们的研究结果的影响,为开发人员,研究人员,工具构建者,语言或库设计人员,以改善Java注释工程的各个方面。

英文摘要:

Annotations have been formally introduced into Java since Java 5. Since then, annotations have been widely used by the Java community for different purposes, such as compiler guidance and runtime processing. Despite the ever-growing use, there is still limited empirical knowledge about the actual usage of annotations in practice, the changes made to annotations during software evolution, and the potential impact of annotations on code quality. To fill this gap, we perform the first large-scale empirical study about Java annotations on 1,094 notable open-source projects hosted on GitHub. Our study systematically investigates annotation usage, annotation evolution, and annotation impact, and generates 10 novel and important findings. We also present the implications of our findings, which shed light for developers, researchers, tool builders, and language or library designers in order to improve all facets of Java annotation engineering.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑