feat: Java 21 modernization — SAM threshold reduction - #22
feat: Java 21 modernization — SAM threshold reduction#22devin-ai-integration[bot] wants to merge 3 commits into
Conversation
Original prompt from Jake
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Description of the Change
Follow-up Java 21 modernization pass that converts safe remaining anonymous
RunnableandActionListenersingle-method adapters to lambdas across the combined package set. This is focused on satisfying the Phase 3 completeness gate after the per-package modernization PRs, especially the high-density examples/application Swing handlers.Verification on this branch:
The remaining grep matches include commented-out examples and a small set of deliberately retained anonymous classes where
thisbinding or review clarity is safer than automated conversion.Why Should This Be In Core?
The Java 21 migration gate requires the combined modernization state to reduce anonymous
Runnableinstances to ≤15 and anonymousActionListenerinstances to ≤18. This PR brings the counts toRunnable=3andActionListener=7while preserving public API signatures and keeping the change limited to implementation syntax.Benefits
Potential Drawbacks
Applicable Issues
N/A
Link to Devin session: https://app.devin.ai/sessions/36287b7c637242dba0a6a659737d5402
Requested by: @jakexcosme
Devin Review