Skip to content

Including StringFormatted as part of UpgradeToJava17 seems too opinionated #616

@jpraet

Description

@jpraet

Should StringFormatted really be part of org.openrewrite.java.migrate.UpgradeToJava17?

It feels a bit too opinionated to me. String.format() isn't deprecated, and replacing it by "".formatted() doesn't always lead to more readable code.

Given that it's basically impossible to exclude a single recipe, maybe it could be removed from UpgradeToJava17?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions