A Mining-Software-Repository study on deprecated API usages in open-source Java software applications

IF 4.3 2区 计算机科学 Q2 COMPUTER SCIENCE, INFORMATION SYSTEMS
Pietro Cassieri, Simone Romano, Giuseppe Scanniello
{"title":"A Mining-Software-Repository study on deprecated API usages in open-source Java software applications","authors":"Pietro Cassieri,&nbsp;Simone Romano,&nbsp;Giuseppe Scanniello","doi":"10.1016/j.infsof.2025.107782","DOIUrl":null,"url":null,"abstract":"<div><h3>Context:</h3><div>A deprecated <em>API</em> (<em>Application Programming Interface</em>) is an API that its original developers no longer recommend using. Although deprecated APIs (<em>i.e.,</em> deprecated fields, methods, and classes) are still implemented, they are likely to be removed in future implementations. Consequently, developers are advised against using deprecated APIs in newly written code and are encouraged to update existing code to remove any deprecated API usage.</div></div><div><h3>Objective:</h3><div>We aimed to gather preliminary empirical evidence on deprecated API usages in open-source Java applications.</div></div><div><h3>Methods:</h3><div>To pursue such a goal, we conducted an exploratory <em>Mining-Software-Repository</em> (<em>MSR</em>) study in which we quantitatively analyzed the commit histories of 14 applications whose software projects were top-starred on GitHub.</div></div><div><h3>Results:</h3><div>The most important takeaway results of our study can be summarized as follows: <em>(i)</em> deprecated API usages are pretty widespread in the studied software applications; <em>(ii)</em> only in half of these applications, developers remove deprecated API usages as soon as possible; <em>(iii)</em> consuming their own deprecated APIs is a prevalent phenomenon in half of the studied applications; <em>(iv)</em> the introductions and removals of deprecated API usages are mostly due to changes performed by senior contributors; <em>(v)</em> developers mostly introduce and remove deprecated API usages when they are far from publishing a release version; and <em>(vi)</em> the introductions and removals of deprecated API usages are often undocumented in commit messages.</div></div><div><h3>Conclusion:</h3><div>The outcomes of our study suggest that developers should better handle deprecated API usages.</div></div>","PeriodicalId":54983,"journal":{"name":"Information and Software Technology","volume":"186 ","pages":"Article 107782"},"PeriodicalIF":4.3000,"publicationDate":"2025-06-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Information and Software Technology","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0950584925001211","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, INFORMATION SYSTEMS","Score":null,"Total":0}
引用次数: 0

Abstract

Context:

A deprecated API (Application Programming Interface) is an API that its original developers no longer recommend using. Although deprecated APIs (i.e., deprecated fields, methods, and classes) are still implemented, they are likely to be removed in future implementations. Consequently, developers are advised against using deprecated APIs in newly written code and are encouraged to update existing code to remove any deprecated API usage.

Objective:

We aimed to gather preliminary empirical evidence on deprecated API usages in open-source Java applications.

Methods:

To pursue such a goal, we conducted an exploratory Mining-Software-Repository (MSR) study in which we quantitatively analyzed the commit histories of 14 applications whose software projects were top-starred on GitHub.

Results:

The most important takeaway results of our study can be summarized as follows: (i) deprecated API usages are pretty widespread in the studied software applications; (ii) only in half of these applications, developers remove deprecated API usages as soon as possible; (iii) consuming their own deprecated APIs is a prevalent phenomenon in half of the studied applications; (iv) the introductions and removals of deprecated API usages are mostly due to changes performed by senior contributors; (v) developers mostly introduce and remove deprecated API usages when they are far from publishing a release version; and (vi) the introductions and removals of deprecated API usages are often undocumented in commit messages.

Conclusion:

The outcomes of our study suggest that developers should better handle deprecated API usages.
开源Java软件应用程序中废弃API用法的挖掘软件存储库研究
上下文:已弃用的API(应用程序编程接口)是其原始开发人员不再推荐使用的API。尽管已弃用的api(即,已弃用的字段、方法和类)仍在实现,但它们很可能在未来的实现中被删除。因此,建议开发人员不要在新编写的代码中使用不推荐的API,并鼓励更新现有代码以删除任何不推荐的API用法。目的:我们旨在收集开源Java应用程序中不推荐的API用法的初步经验证据。方法:为了实现这一目标,我们进行了一项探索性的挖掘软件存储库(MSR)研究,在该研究中,我们定量分析了14个应用程序的提交历史,这些应用程序的软件项目在GitHub上获得了最高星级。结果:我们研究的最重要的收获结果可以总结如下:(i)在研究的软件应用程序中,不推荐的API用法相当普遍;(ii)只有在一半的应用程序中,开发人员会尽快删除已弃用的API用法;(iii)在一半的研究应用程序中,使用他们自己弃用的api是一个普遍现象;(iv)已弃用的API用法的引入和删除主要是由于高级贡献者进行的更改;(v)开发人员在离发布发布版本还很远的时候,大多会引入和删除不推荐的API用法;(vi)在提交消息中,不推荐的API用法的引入和删除通常没有记录。结论:我们的研究结果表明,开发人员应该更好地处理废弃的API用法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Information and Software Technology
Information and Software Technology 工程技术-计算机:软件工程
CiteScore
9.10
自引率
7.70%
发文量
164
审稿时长
9.6 weeks
期刊介绍: Information and Software Technology is the international archival journal focusing on research and experience that contributes to the improvement of software development practices. The journal''s scope includes methods and techniques to better engineer software and manage its development. Articles submitted for review should have a clear component of software engineering or address ways to improve the engineering and management of software development. Areas covered by the journal include: • Software management, quality and metrics, • Software processes, • Software architecture, modelling, specification, design and programming • Functional and non-functional software requirements • Software testing and verification & validation • Empirical studies of all aspects of engineering and managing software development Short Communications is a new section dedicated to short papers addressing new ideas, controversial opinions, "Negative" results and much more. Read the Guide for authors for more information. The journal encourages and welcomes submissions of systematic literature studies (reviews and maps) within the scope of the journal. Information and Software Technology is the premiere outlet for systematic literature studies in software engineering.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信