Skip to content

Convert switch statements to enhanced switch expressions #17300

@AmitKumarDeoghoria

Description

@AmitKumarDeoghoria

From comment : #17259 (comment)
During the JDK 17 upgrade(#17168), IntelliJ inspections identified 68 switch statements that can be replaced with modern enhanced switch expressions (introduced in JDK 14). To maintain focus on the core upgrade, we will temporarily disable these inspections and address them in a dedicated refactoring effort post-migration.

Next Steps

  • Disable inspection in current JDK 11 PR

  • Post-JDK 17 upgrade:

  • Re-enable inspection

  • Refactor using IDE's "Replace with enhanced switch" tool

  • Validate with tests

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions