Refactoring to Modernize Java Applications
summary
Demonstrates automated refactors that upgrade a Maven project from Java 11 to Java 21, changing pom.xml and source—examples replace list.get(0)/get(size-1) with getFirst/getLast and convert loops to streams—using OpenRewrite with a lossless syntax tree so comments and formatting survive. Recipes run incrementally (11→17→21), can be custom‑written, and cut multi‑project work from months to minutes; tooling and Copilot integration work but remain flaky, so tests and review are essential.
AI-written summary · about
chapters (8)
- 0:00Modernization benefits and challenges
- 4:09Overcoming refactoring fears
- 8:30Role of tools and AI
- 14:44Introduction to Open Rewrite
- 20:16Practical code refactoring demonstration
- 31:25Executing automated upgrades
- 40:39Reviewing upgrade results
- 46:14AI-assisted refactoring with Copilot
related talks
45mMajor migrations made easy
07mTim te Beek at JNation 2024
31mStrengthen Our Developer eXperience to Face Obsolescence and View...
13mMajor migrations made easy
15mMajor migrations made easy
34mStaying Current A Journey in Software Maintenance
57mSurvival guide to continuously align and upgrade your Spring dependencies
01h 17mRefactoring the ROI of Software
