Repository navigation
fix: Remove deprecation warnings introduced by the Java 11 migration - #41
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #41 +/- ##
=========================================
Coverage 80.85% 80.85%
Complexity 357 357
=========================================
Files 22 22
Lines 1964 1964
Branches 193 193
=========================================
Hits 1588 1588
Misses 298 298
Partials 78 78 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
bobbylight
force-pushed
the
fix-java-11-deprecation-warnings
branch
from
October 4, 2026 22:58
ab87bc2 to
8e68f2a
Compare
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
bobbylight
force-pushed
the
fix-java-11-deprecation-warnings
branch
from
October 4, 2026 23:03
8e68f2a to
7ae53e0
Compare
bobbylight
marked this pull request as ready for review
October 4, 2026 23:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cleans up the 16 javac deprecation warnings that appeared when the project moved to Java 11.
Details
Replaces deprecated AWT input APIs with their non-deprecated equivalents:
Toolkit.getMenuShortcutKeyMask()→getMenuShortcutKeyMaskEx()InputEvent.{SHIFT,CTRL,META}_MASK→*_DOWN_MASKKeyEvent.getModifiers()→getModifiersEx()inFindToolBar's key listenerFindToolBar's JButtonActionEventmodifier check now usesActionEvent.CTRL_MASK|SHIFT_MASK, which are not deprecated and have the same values as the oldInputEventmasksKeyStroke.getKeyStroke(int, int)accepts both the old and extended modifier masks, so keyboard shortcuts are unchanged.Test plan
./gradlew clean buildpasses with no javac warnings. Manually verify in the demo app (./gradlew RSTAUIDemo:run):🤖 Generated with Claude Code