Back to search

Graduate Studies

API Deprecation: A Retrospective Analysis and Method for Detecting Deprecated API Usages in Code Examples on the Web

Abstract

dc:description.abstract

Application Programming Interfaces (APIs) can get deprecated over time, to indicate that they are obsolete, dangerous, and/or to be eliminated in future versions. This thesis ad- dresses two problems involving API deprecation. API deprecation has not been systematically studied so far. We empirically study how API deprecation has been used in 26 open source Java systems. We find that API dep- recation seems to be underused and not enough information is provided to help users via deprecation messages. More than 40% of all deprecated APIs were removed, most of which were removed during transitions to major releases. A developer may waste valuable time consulting code examples on the web containing deprecated API usages. A version sensitive framework was proposed to detect deprecated API usages in code examples on the web and a prototype tool based on this framework was implemented. Our evaluation of this tool shows that it works fairly well.

Degree

thesis:*
Name thesis:degree_name
Master of Science (MSc)
Discipline thesis:degree_discipline
Computer Science
Grantor dc:publisher.institution
Graduate Studies
Year dc:date.issued
2016

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Zhou, Jing
Advisor dc:contributor.advisor
  • Walker, Robert
Committee members dc:contributor.committeemember
  • Oehlberg, Lora
  • Krishnamurthy, Diwakar

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • University of Calgary graduate students retain copyright ownership and moral rights for their thesis. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission.
Language dc:language.iso
eng

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
University of Calgary
Base URL
ucalgary.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
related terms
citation

Zhou, Jing. API Deprecation: A Retrospective Analysis and Method for Detecting Deprecated API Usages in Code Examples on the Web. Graduate Studies, 2016. http://hdl.handle.net/11023/2824