* Replace if-cascades with switch
* Reference to empty collection field replaced with method call (Java 5)
* Anonymous type replaced with lambda (Java 8)
* Replaced lambda with method reference (Java 8)
* Statement lambda replaced with expression lambda (Java 8)
* Loop replaced with 'Collection.removeIf()' (Java 8)
* Null check replaced with method call (Java 9)
* Statement replaced with enhanced 'switch' (Java 14)
* Use text blocks (Java 15)
* Use pattern variable (Java 16)
* Replace if-cascades with switch
* Use 'Comparator' combinator
* Null check replaced with method call (Java 9)
* Use pattern variable (Java 16)
* Use record pattern (Java 21)
* Use SequencedCollection method (Java 21)
* Replaced lambda with method reference (Java 8)
* Cleanup unused imports
* Cleanup migrations (move comments, formatting, spotbugs...)
* Remove duplicate comment
Resolve GitHub Copilot review comment
* Remove blank line that may confuse Copilot
* Inject comments into source line
Attempt to satisfy GitHub Copilot
Complains about unreachable code
* Simplify with return value of switch statement
* Use pattern matching instanceof in one more case
* Don't lose the NetBeans comment that was there before
* Remove TODO for Java 21 pattern use, implemented
* Align comments with Unicode character they describe
---------
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
* Bump winstone to get Jetty 12.1.1
* Accept to start Jenkins with Java 25
* Build with Java 25
* Remove inaccurate javadoc that includes an incorrect link
The Javadoc comment said:
> When executing the resulting Callable, it executes
> FileCallable#act(FileCallable) on this FilePath.
The FileCallable interface does not have an `act(FileCallable)` method.
That absence causes the Javadoc generation to fail on Java 25.
There is a `FilePath.act(FileCallable)` method that could be inserted
instead, but I'm not confident the comment would then be correct.
Testing done:
Confirmed that Javadoc generation fails on Java 25 without this change.
Confirmed that Javadoc generation passes on Java 25 with this change.
(cherry picked from commit 3fdf9c18db)
* Temporary fix for javadoc build
* Bump winstone to 8.14
* Update Jenkinsfile
---------
Co-authored-by: Bruno Verachten <gounthar@gmail.com>
Co-authored-by: Mark Waite <mark.earl.waite@gmail.com>
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
* Ensure Classloaders have names for debugging
* update incremental version
* simplify name of UberClassloader and update since TODOs
Co-authored-by: Jesse Glick <jglick@cloudbees.com>
* use released version of remoting
* set the minimum version of remoting
* pick up backward compatable remoting version
* update from remoting incremental version to release version
https://github.com/jenkinsci/remoting/releases/tag/3248.v65ecb_254c298
---------
Co-authored-by: Jesse Glick <jglick@cloudbees.com>