handsomewu6688-design opened a new pull request, #1662: URL: https://github.com/apache/commons-lang/pull/1662
## Summary This PR upgrades the project from Java 8 to Java 17 using the OpenRewrite org.openrewrite.java.migrate.UpgradeToJava17 recipe, applied via the rewrite-maven-plugin. ## Changes Applied - UpgradeJavaVersion: Updated source/target from 8 to 17 in pom.xml - InstanceOfPatternMatch: Replaced instanceof + cast with pattern matching - AddSerialAnnotationToSerialVersionUID: Added @Serial annotation to serialVersionUID fields - StringFormatted: Converted String.format to .formatted - PathsGetToPathOf: Replaced Paths.get with Path.of - OptionalNotPresentToIsEmpty: Converted !optional.isPresent to optional.isEmpty ## Statistics - 107 files changed, 623 insertions, 576 deletions - Estimated manual effort saved: 3 hours 12 minutes ## Verification - Built and tested with JDK 17 - All existing tests pass with the upgraded code ## Tool Recipe: org.openrewrite.java.migrate.UpgradeToJava17 Plugin: rewrite-maven-plugin Coordinates: org.openrewrite.recipe:rewrite-migrate-java:LATEST -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
