Detection of Technical Debt in Java Source Code

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Hai, Nam Le, Bui, Anh M. T., Nguyen, Phuong T., Di Ruscio, Davide, Kazman, Rick
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915435663851520
author Hai, Nam Le
Bui, Anh M. T.
Nguyen, Phuong T.
Di Ruscio, Davide
Kazman, Rick
author_facet Hai, Nam Le
Bui, Anh M. T.
Nguyen, Phuong T.
Di Ruscio, Davide
Kazman, Rick
contents Technical debt (TD) describes the additional costs that emerge when developers have opted for a quick and easy solution to a problem, rather than a more effective and well-designed, but time-consuming approach. Self-Admitted Technical Debts (SATDs) are a specific type of technical debts that developers intentionally document and acknowledge, typically via textual comments. While these comments are a useful tool for identifying TD, most of the existing approaches focus on capturing tokens associated with various categories of TD, neglecting the rich information embedded within the source code. Recent research has focused on detecting SATDs by analyzing comments, and there has been little work dealing with TD contained in the source code. In this study, through the analysis of comments and their source code from 974 Java projects, we curated the first ever dataset of TD identified by code comments, coupled with its code. We found that including the classified code significantly improves the accuracy in predicting various types of technical debt. We believe that our dataset will catalyze future work in the domain, inspiring various research related to the recognition of technical debt; The proposed classifiers may serve as baselines for studies on the detection of TD.
format Preprint
id arxiv_https___arxiv_org_abs_2411_05457
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Detection of Technical Debt in Java Source Code
Hai, Nam Le
Bui, Anh M. T.
Nguyen, Phuong T.
Di Ruscio, Davide
Kazman, Rick
Software Engineering
Technical debt (TD) describes the additional costs that emerge when developers have opted for a quick and easy solution to a problem, rather than a more effective and well-designed, but time-consuming approach. Self-Admitted Technical Debts (SATDs) are a specific type of technical debts that developers intentionally document and acknowledge, typically via textual comments. While these comments are a useful tool for identifying TD, most of the existing approaches focus on capturing tokens associated with various categories of TD, neglecting the rich information embedded within the source code. Recent research has focused on detecting SATDs by analyzing comments, and there has been little work dealing with TD contained in the source code. In this study, through the analysis of comments and their source code from 974 Java projects, we curated the first ever dataset of TD identified by code comments, coupled with its code. We found that including the classified code significantly improves the accuracy in predicting various types of technical debt. We believe that our dataset will catalyze future work in the domain, inspiring various research related to the recognition of technical debt; The proposed classifiers may serve as baselines for studies on the detection of TD.
title Detection of Technical Debt in Java Source Code
topic Software Engineering
url https://arxiv.org/abs/2411.05457