Skip to content

StringUtils.isNotEmpty() does not negate StringUtils.isEmpty() #214

Closed
@kwin

Description

@kwin

While the latter does a trim() (

public static boolean isEmpty( String str )
{
return ( ( str == null ) || ( str.trim().isEmpty() ) );
}
) and is actually doing StringUtils.isBlank() the former does never trim.

See also the note added in plexus-utils 1.5.2 (released in 2008): 800c53c

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions