Skip to content

Upgrade codebase to Java 17 language features #1431

@groldan

Description

@groldan

Apply the OpenRewrite "Upgrade to Java 17" recipe to modernize the codebase with Java 17 language features and improvements.

This is a follow-up to #1406 which upgraded the build system to use Java 17 as the baseline. This ticket focuses on modernizing the source code base itself to take advantage of Java 17 language features:

  • Convert instanceof + cast patterns to pattern matching
  • Upgrade switch statements to switch expressions where applicable
  • Modernize text block usage
  • Apply other Java 17 syntax improvements

Metadata

Metadata

Assignees

Labels

ImprovementjavaPull requests that update java code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions