arrow
Return

A Metrics Suite for code annotation assessment

delete2018-03-01
delete10
PRE
AI
P
Phyllipe Lima *
E
Eduardo Guerra
P
Paulo Meirelles
L
Lucas Kanashiro
H
Hélio Silva
F
Fábio Fagundes Silveira
DOI:10.1016/j.jss.2017.11.024delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Code annotation is a language feature that enables the introduction of custom metadata on programming elements. In Java, this feature was introduced on version 5, and today it is widely used by main enterprise application frameworks and APIs. Although this language feature potentially simplifies metadata configuration, its abuse and misuse can reduce source code readability and complicate its maintenance. The goal of this paper is to propose software metrics regarding annotations in the source code and analyze their distribution in real-world projects. We have defined a suite of metrics to assess characteristics of the usage of source code annotations in a code base. Our study collected data from 24947 classes extracted from open source projects to analyze the distribution of the proposed metrics. We developed a tool to automatically extract the metrics and provide a full report on annotations usage. Based on the analysis of the distribution, we defined an appropriate approach for the calculation of thresholds to interpret the metric values. The results allow the assessment of annotated code characteristics. Using the thresholds values, we proposed a way to interpret the use of annotations, which can reveal potential problems in the source code. (C) 2017 Elsevier Inc. All rights reserved.
Keywords:
Code annotation
Software metrics
Thresholds
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Journal of Systems and Software cover
Journal of Systems and Software
IF:
4.1
Papers:
5.4K
Citations:
8.4K

Organization

U
universidade federal de sao paulo (unifesp)
Scholars:
2.3W
Papers: 1.3W
Citations: 12
I
instituto nacional de pesquisas espaciais (inpe)
Scholars:
3.0K
Papers: 2.1K
Citations: 3
U
universidade de sao paulo
Scholars:
10.5W
Papers: 6.7W
Citations: 93
researcher View more organizations