SEDec 7, 2021

IntelliTC: Automating Type Changes in IntelliJ IDEA

arXiv:2112.03619v26 citationsHas Code
Originality Synthesis-oriented
AI Analysis

This tool addresses a specific, incremental improvement for Java developers by building on existing data-driven approaches to enhance IDE support for type changes.

The paper tackles the problem of automating type change refactoring in Java code, which is tedious and error-prone, by introducing IntelliTC, a plugin for IntelliJ IDEA that provides three user experience modes, and it was positively rated by 22 experienced developers in a survey.

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. 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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes