Automatically improving Java codebases with Error Prone
summary
Shows how Error Prone (a Java compiler plugin) plus Refaster rules automatically detect and rewrite issues during Maven builds; demo compiles, flags "return value ignored" and fixes it with a patch profile. Picnic reports creating ~900 Refaster rules and ~40 BugPatterns, running 60+ PRs across ~70 repos to apply fixes, using a patch script so CI fails until developers run and inspect automated changes. Rollout is iterative, suppressions exist for edge cases, and adopters report fewer repetitive review comments.
AI-written summary · about
chapters (11)
- 0:00Introduction and motivation
- 1:44What is Error Prone
- 9:33Error Prone demo
- 24:51Refaster and custom rules
- 30:54Deep dive into Refaster
- 43:10Live coding Refaster rules
- 1:02:20Error Prone advanced features
- 1:19:48Implementing Error Prone checks
- 1:30:03Roadmap for adoption
- 1:43:51Error Prone at Picnic
- 1:53:45Q&A and closing
related talks
48mSay goodbye to bugs and anti-patterns with Error Prone
38mSay goodbye to bugs and anti-patterns with Error Prone
45mAutomating away bugs with Error Prone in practice
49mStreamlining large-scale Java development using Error Prone
31mError Prone: Google's Secret Weapon for Bug-Free Lines of Code
43mCracking the Code Review: from Guesswork to Automated Guidance
25mHow we automated code maintenance
01h 13mAutomating Security Fixes with OpenRewrite
