-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Migrate code base to Java 21 #26075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MarkEWaite
merged 33 commits into
jenkinsci:master
from
strangelookingnerd:java-level-migrations
Jan 24, 2026
Merged
Migrate code base to Java 21 #26075
Changes from 19 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
d5ba10b
Replace if-cascades with switch
strangelookingnerd b58d88d
Reference to empty collection field replaced with method call (Java 5)
strangelookingnerd f7c092c
Anonymous type replaced with lambda (Java 8)
strangelookingnerd 7a427ff
Replaced lambda with method reference (Java 8)
strangelookingnerd 25f34d9
Statement lambda replaced with expression lambda (Java 8)
strangelookingnerd b3dd480
Loop replaced with 'Collection.removeIf()' (Java 8)
strangelookingnerd 6ae4f30
Null check replaced with method call (Java 9)
strangelookingnerd 0c7e7e2
Statement replaced with enhanced 'switch' (Java 14)
strangelookingnerd a4edf69
Use text blocks (Java 15)
strangelookingnerd ecc8116
Use pattern variable (Java 16)
strangelookingnerd 12fd903
Replace if-cascades with switch
strangelookingnerd 9a144f6
Use 'Comparator' combinator
strangelookingnerd 6f96240
Null check replaced with method call (Java 9)
strangelookingnerd c83ad11
Use pattern variable (Java 16)
strangelookingnerd c480034
Use record pattern (Java 21)
strangelookingnerd 70b01c5
Use SequencedCollection method (Java 21)
strangelookingnerd 3afc59a
Replaced lambda with method reference (Java 8)
strangelookingnerd a474bde
Cleanup unused imports
strangelookingnerd d6ae31d
Cleanup migrations (move comments, formatting, spotbugs...)
strangelookingnerd 46c36c1
Merge branch 'master' into java-level-migrations
MarkEWaite 1e4eda5
Remove duplicate comment
MarkEWaite ea4f7ae
Remove blank line that may confuse Copilot
MarkEWaite 55bedd4
Inject comments into source line
MarkEWaite cb162ac
Simplify with return value of switch statement
MarkEWaite 0653080
Merge branch 'master' into java-level-migrations
MarkEWaite 573262e
Merge branch 'master' into java-level-migrations
MarkEWaite b2e4c8f
Merge branch 'master' into java-level-migrations
MarkEWaite a22a2cc
Merge branch 'master' into java-level-migrations
MarkEWaite cb73c11
Use pattern matching instanceof in one more case
MarkEWaite 84a4ae3
Don't lose the NetBeans comment that was there before
MarkEWaite c3fe756
Remove TODO for Java 21 pattern use, implemented
MarkEWaite e5bf2fe
Align comments with Unicode character they describe
MarkEWaite 3bb6bfd
Merge branch 'master' into java-level-migrations
MarkEWaite File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.