Re: [PR] Upgrade Java 8 to Java 17 via OpenRewrite UpgradeToJava17 recipe [commons-math]

Gilles Sadowski <[email protected]> Tue, 19 May 2026 12:48:26 +0200
Newsgroups gmane.comp.jakarta.commons.devel
Message-ID <CACioL_FwWLBpLpYBve4csUOb62k6O23soWmVpMUWD+SUM4-CRA@mail.gmail.com>
Hi.

Le mar. 19 mai 2026 à 11:57, handsomewu6688-design (via GitHub)
<[email protected]> a écrit :
>
>
> handsomewu6688-design opened a new pull request, #321:
> URL: https://github.com/apache/commons-math/pull/321

What do we make of this?

Regards,
Gilles

>
>    ## Summary
>
>    This PR upgrades the project from Java 8 to Java 17 using the OpenRewrite org.openrewrite.java.migrate.UpgradeToJava17 recipe.
>
>    ## Changes Applied
>
>    - UpgradeJavaVersion: Updated source/target from 8 to 17 in pom.xml
>    - InstanceOfPatternMatch: Replaced instanceof + cast with pattern matching
>    - AddSerialAnnotationToSerialVersionUID: Added @Serial annotation
>    - StringFormatted: Converted String.format to .formatted
>    - PathsGetToPathOf: Replaced Paths.get with Path.of
>    - UseTextBlocks: Converted multiline strings to text blocks
>
>    ## Statistics
>
>    - 129 files changed, 476 insertions, 270 deletions
>    - Estimated manual effort saved: 2 hours 52 minutes
>
>    ## Verification
>
>    - BUILD SUCCESS with JDK 17
>
>    ## Tool
>
>    Recipe: org.openrewrite.java.migrate.UpgradeToJava17
>    Plugin: rewrite-maven-plugin
>    Coordinates: org.openrewrite.recipe:rewrite-migrate-java:LATEST