arrow
返回

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
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

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.
Keyword:
Code annotation
Software metrics
Thresholds
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
8.4K

机构

U
universidade federal de sao paulo (unifesp)
学者数:
2.3W
论文数: 1.3W
被引数: 12
I
instituto nacional de pesquisas espaciais (inpe)
学者数:
3.0K
论文数: 2.1K
被引数: 3
U
universidade de sao paulo
学者数:
10.6W
论文数: 6.7W
被引数: 93
学者 查看更多机构
引用论文

引用论文

Scale-free geometry in OO programs
err2005-05-01
err137
PREAI
errPotanin, A; Noble, J; Frean, M; Biddle, R
err分享
err收藏
err分享
err收藏
Power-laws in a large oriented software system面向大型软件系统中的幂律
err2007-10-01
err171
PREAI
errConcas, Giulio; Marchesi, Michele; Pinna, Sandro; Serra, Nicola
err分享
err收藏
Power Laws in Software
err2008-10-07
err131
PREAI
errLouridas, Panagiotis; Spinellis, Diomidis; Vlachos, Vasileios
err分享
err收藏