Skip to content

Convert value.trim().length() < 1 to value.isBlank() < 1 #90

@Pankraz76

Description

@Pankraz76

What problem are you trying to solve?

Describe the solution you'd like

Have you considered any alternatives or workarounds?

Additional context

Are you interested in contributing this feature to OpenRewrite?

add recipe to revert these change and apply whats done in the PR:

IsNotEmptyToJdk

    return (value == null) || (value.trim().length() < 1);

    return (value == null) || (value.trim().isEmpty());

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions