Skip to content

Upgrade Java 11 to Java 17#1418

Open
handsomewu6688-design wants to merge 1 commit into
xerial:masterfrom
handsomewu6688-design:openrewrite-upgrade-java17
Open

Upgrade Java 11 to Java 17#1418
handsomewu6688-design wants to merge 1 commit into
xerial:masterfrom
handsomewu6688-design:openrewrite-upgrade-java17

Conversation

@handsomewu6688-design
Copy link
Copy Markdown

@handsomewu6688-design handsomewu6688-design commented May 19, 2026

Summary

This PR upgrades the project from Java 11 to Java 17, applying modern Java language features and updating the build configuration accordingly.

Changes

  • Updated source/target from 11 to 17
  • Applied instanceof pattern matching
  • Added @serial annotation to serialVersionUID fields
  • Converted String.format to .formatted
  • Replaced Paths.get with Path.of
  • Replaced new Integer/Long with valueOf
  • Converted multiline strings to text blocks
  • Updated CI workflow JDK version

Statistics

26 files changed, 116 insertions, 125 deletions

Verification

  • BUILD SUCCESS with JDK 17

- Apply instanceof pattern matching
- Add @serial annotation to serialVersionUID fields
- Convert String.format to .formatted
- Replace Paths.get with Path.of
- Replace new Integer/Long with valueOf
- Convert multiline strings to text blocks
- Update CI workflow JDK version

All tests pass with JDK 17.
@handsomewu6688-design handsomewu6688-design force-pushed the openrewrite-upgrade-java17 branch from d1ca670 to b4c931d Compare May 19, 2026 10:04
@handsomewu6688-design handsomewu6688-design changed the title Upgrade Java 11 to Java 17 via OpenRewrite UpgradeToJava17 recipe Upgrade Java 11 to Java 17 May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant