English

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

Software Engineering 2019-04-16 v2 Programming Languages

Abstract

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.

Cite

@article{arxiv.1805.01965,
  title  = {Characterizing the Usage, Evolution and Impact of Java Annotations in Practice},
  author = {Zhongxing Yu and Chenggang Bai and Lionel Seinturier and Martin Monperrus},
  journal= {arXiv preprint arXiv:1805.01965},
  year   = {2019}
}

Comments

TO APPEAR IN IEEE TRANSACTIONS ON SOFTWARE ENGINEERING

R2 v1 2026-06-23T01:45:44.522Z