arrow
返回

A3: Assisting Android API Migrations Using Code Examples

delete2022-02-01
delete21
delete
OA
AI
M
Maxime Lamothe
W
Weiyi Shang *
T
Tse-Hsun Chen
DOI:10.1109/TSE.2020.2988396delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
The fast-paced evolution of Android APIs has posed a challenging task for Android app developers. To leverage Androids frequently released APIs, developers must often spend considerable effort on API migrations. Prior research and Android official documentation typically provide enough information to guide developers in identifying the API calls that must be migrated and the corresponding API calls in an updated version of Android (what to migrate). However, API migration remains a challenging task since developers lack the knowledge of how to migrate the API calls. There exist code examples, such as Google Samples, that illustrate the usage of APIs. We posit that by analyzing the changes of API usage in code examples, we can learn API migration patterns to assist developers with API Migrations. In this paper, we propose an approach that learns API migration patterns from code examples, applies these patterns to the source code of Android apps for API migration, and presents the results to users as potential migration solutions. To evaluate our approach, we migrate API calls in open source Android apps by learning API migration patterns from code examples. We find that our approach can successfully learn API migration patterns and provide API migration assistance in 71 out of 80 cases. Our approach can either migrate API calls with little to no extra modifications needed or provide guidance to assist with the migrations. Through a user study, we find that adopting our approach can reduce the time spent on migrating APIs, on average, by 29 percent. Moreover, our interviews with app developers highlight the benefits of our approach when seeking API migrations. Our approach demonstrates the value of leveraging the knowledge contained in software repositories to facilitate API migrations.
Keyword:
Task analysis
Documentation
Google
Software maintenance
Interviews
Indexes
API
software quality
mining software repositories
empirical software engineering
AI总结

AI总结

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

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.3W

机构

C
concordia university - canada
学者数:
8.0K
论文数: 8.9K
被引数: 1.1W
引用论文

引用论文

Communicating Uncertainty
err
IF0
err2012-10-12
err0
errOAAI
err
err分享
err收藏
A Hybrid ACO+CP for Balancing Bicycle Sharing Systems
err2013-01-01
err0
PREAI
errLuca Di Gaspero; Andrea Rendl; Tommaso Urli
err分享
err收藏
err分享
err收藏
Testosterone Differentially Affects T Cells and Neurons in Murine and Human Models of Neuroinflammation and Neurodegeneration
err2017-07-01
err0
errOAAI
errMegan G. Massa; Christina David; Stefanie Jörg; Johannes Berg; Barbara Gisevius; Sarah Hirschberg; Ralf A. Linker; Ralf Gold; Aiden Haghikia
err分享
err收藏
Phase I trial of sunitinib and gemcitabine in patients with advanced solid tumors
err2012-08-07
err0
errOAAI
errJoanna M. Brell; Smitha S. Krishnamurthi; Linda Rath; Joseph A. Bokar; Panayiotis Savvides; Joseph Gibbons; Matthew M. Cooney; Neal J. Meropol; Percy Ivy; Afshin Dowlati
err分享
err收藏
err分享
err收藏
err
IF0
err
err0
PREAI
err
err分享
err收藏
学者 查看更多内容