paperbot · PL 论文追踪

全部论文 待读 收藏

P2 LiveRef: a Tool for Live Refactoring Java Code

LiveRef:面向 Java 代码的实时重构工具
ASE Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering2022匹配度 1/10 · 该论文关注 Java 代码的实时 Extract Method 重构工具,属于软件工程/开发者工具方向,既不涉及 LLM/Agent 与静态分析的交叉,也不涉及浮点程序分析或贝叶斯程序分析,与用户研究画像的核心方向基本无关。引用 10 inbox
Sara Fernandes, Ademar Aguiar, André Restivo
crossref: 2026-09-12

AI 速览

一句话:提出 LiveRef 实时重构环境,可实时识别、推荐并应用 Extract Method 重构,提升 Java 代码质量与开发体验。

重构软件既困难又耗时,已有重构工具虽能帮助开发者改善代码可读性与可维护性,但通常反馈周期长,影响重构体验。论文提出 Live Refactoring 概念及其原则:持续可视化重构候选并实时推荐,以及在应用重构后立即展示代码变化结果。作者实现 LiveRef,一个面向 Java 的实时重构环境,能够识别、建议并应用 Extract Method 重构。为评估该方法,作者开展了一项实证实验,初步结果表明该环境改善了多项代码质量指标,并得到参与者的接受、理解和使用。工具源码与演示视频已公开。

问题
现有重构工具反馈周期长,重构体验差,开发者难以及时发现并评估重构机会。
方法
提出实时重构原则,并实现 LiveRef 环境,对 Java 代码实时识别、推荐和应用 Extract Method 重构。
评估
通过实证实验评估,初步结果显示代码质量多项指标改善,参与者对工具的接受度、理解度和使用意愿较好。
原文摘要(Abstract)

Refactoring software can be hard and time-consuming. Several refactoring tools assist developers in reaching more readable and maintainable code. However, most of them are characterized by long feedback loops that impoverish their refactoring experience. We believe that we can reduce this problem by focusing on the concept of Live Refactoring and its main principles: the live recommendation and continuous visualization of refactoring candidates, and the immediate visualization of results from applying a refactoring to the code. Therefore, we implemented a Live Refactoring Environment that identifies, suggests, and applies Extract Method refactorings. To evaluate our approach, we carried out an empirical experiment. Early results showed us that our refactoring environment improves several code quality aspects, being well received, understood, and used by the experiment participants. The source code of our tool is available on: https://github.com/saracouto1318/LiveRef. Its demonstration video can be found at: https://youtu.be/_jxx21ZiQ0o.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot7284,
  title = {LiveRef: a Tool for Live Refactoring Java Code},
  author = {Sara Fernandes and Ademar Aguiar and André Restivo},
  booktitle = {ASE},
  year = {2022},
  doi = {10.1145/3551349.3559532}
}