Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kwin opened this issue Sep 11, 2022 · 1 comment · Fixed by #219
Closed

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

kwin opened this issue Sep 11, 2022 · 1 comment · Fixed by #219
Labels

Comments

@kwin
Copy link
Contributor

kwin commented Sep 11, 2022

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

@michael-o
Copy link
Member

I'd push a 3.5.0 with this fixed finally after 14 years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants