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

隐藏在显眼处:开发者自述自承认技术债务的位置

Hidden in Plain Sight: Where Developers Confess Self-Admitted Technical Debt

University of Oulu(奥卢大学);University of Helsinki(赫尔辛基大学)

Murali Sridharan, Mikel Robredo, Leevi Rantala, Matteo Esposito, Valentina Lenarduzzi, Mika Mantyla

AI总结:

本研究利用PENTACET数据集分析超9000个Java开源仓库,将超22.5万条SATD注释与源代码结构关联,发现SATD主要出现在定义、条件判断和异常处理附近的内联代码中,是开发者在变更时有意识的认知信号。

摘要:

背景。检测自承认技术债务(SATD)对于主动式软件维护至关重要。以往研究主要集中于检测和优先处理SATD,很少关注受SATD困扰的源代码。本工作的目标是将SATD注释与其周围的源代码结构联系起来。方法。我们利用包含超过9000个Java开源软件(OSS)仓库代码注释的庞大数据集PENTACET,定量推断SATD最常出现的位置以及最频繁受其影响的代码结构/语句。结果与结论。我们的大规模研究将超过225,000条SATD注释与其周围代码联系起来,表明SATD主要出现在定义、条件判断和异常处理附近的内联代码中,这些地方开发者面临不确定性和权衡,揭示出它是变更过程中一种有意识的认知信号,而非单纯的疏忽。

英文摘要:

Context. Detecting Self-Admitted Technical Debt (SATD) is crucial for proactive software maintenance. Previous research has primarily targeted detecting and prioritizing SATD, with little focus on the source code afflicted with SATD. Our goal in this work is to connect the SATD comments with source code constructs that surround them. Method. We leverage the extensive SATD dataset PENTACET, containing code comments from over 9000 Java Open Source Software (OSS) repositories. We quantitatively infer where SATD most commonly occurs and which code constructs/statements it most frequently affects. Results and Conclusions. Our large-scale study links over 225,000 SATD comments to their surrounding code, showing that SATD mainly arises in inline code near definitions, conditionals, and exception handling, where developers face uncertainty and trade-offs, revealing it as an intentional signal of awareness during change rather than mere neglect.

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

↑