From Legacy to Cutting-Edge: Live Refactoring Java 8 to 24
summary
Live demo refactors a Java 8 repo to Java 24 using IntelliJ inspections and an automated assistant called Juny AI, converting a 54‑line POJO into a record, replacing System.out with implicit IO and an instance main, applying text blocks, module imports and flexible constructor calls; the IDE runs a migration inspection across ~16 classes, auto-generates tests and runs them in ~10 minutes (claiming a 3–4 hour manual save), but the AI injects unwanted changes like virtual threads, so results mostly work but require human review.
AI-written summary · about
chapters (14)
- 0:00Introduction to Java modernization
- 3:55Hello world in Java 8
- 5:00Converting to Java records
- 7:31Implicit classes in Java
- 10:22Simplifying imports with modules
- 23:37Reducing boilerplate code
- 35:01Text blocks for multiline strings
- 38:13Code inspections in IntelliJ
- 44:10Flexible constructors in Java 24
- 47:44Switch expressions overview
- 48:25Markdown comments in Java
- 49:50Creating inspection profiles
- 53:25AI-powered code refactoring with Juni
- 57:55Q&A and closing remarks
related talks
59mTools & Tips to Modernize Your Java code with AI
51mRefactor Your Code to Java 20
53mUpgrade Your Java with AI: From Legacy Code to High-Performance Workloads
43mLearning modern Java the playful way
31m"void main()"
28mAutomated Java Upgrades: From Pain to Productivity in 30 Minutes
53mThe Secrets of the Fastest Java Developers on Earth
59mKeeping Pace with the Newer Java Versions
