IntelliTC: Automating Type Changes in IntelliJ IDEA

Oleg Smirnov, Ameya Ketkar, Timofey Bryksin, Nikolaos Tsantalis, Danny Dig
12/7/2021
cs.SE

Official code: JetBrains-Research/data-driven-type-migration (10 stars, Java, MIT, last commit 2021-11-11).

Abstract

Developers often change types of program elements. Such refactoring often involves updating not only the type of the element itself, but also the API of all type-dependent references in the code, thus it is tedious and time-consuming.

Show full abstract

Despite type changes being more frequent than renamings, just a few current IDE tools provide partially-automated support only for a small set of hard-coded types. Researchers have recently proposed a data-driven approach to inferring API rewrite rules for type change patterns in Java using code commits history. In this paper, we build upon these recent advances and introduce IntelliTC - a tool to perform Java type change refactoring. We implemented it as a plugin for IntelliJ IDEA, a popular Java IDE developed by JetBrains. We present 3 different ways of providing support for such a refactoring from the standpoint of the user experience: Classic mode, Suggested Refactoring, and Inspection mode. To evaluate these modalities of using IntelliTC, we surveyed 22 experienced software developers. They positively rated the usefulness of the tool. The source code and distribution of the plugin are available on GitHub: https://github.com/JetBrains-Research/data-driven-type-migration. A demonstration video is on YouTube: https://youtu.be/pdcfvADA1PY.

View on arXivView PDF

Code Implementations(1)

MIT

An IntelliJ IDEA plugin improving type migration refactoring using inferred type conversion rules

100Java, PythonApr 12, 20215 years agoMIT
intellij-pluginrefactoring

Similar Papers

Cite this paper

@article{smirnov2021intellitc,
  title  = {IntelliTC: Automating Type Changes in IntelliJ IDEA},
  author = {Oleg Smirnov and Ameya Ketkar and Timofey Bryksin and Nikolaos Tsantalis and Danny Dig},
  year   = {2021},
  eprint = {2112.03619},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.03619}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.03619.svg)](https://codeofpaper.com/paper/2112.03619)

Discussion