commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Nägele <reinhard.naeg...@mgm-edv.de>
Subject Re: StringUtils.isEmpty(), isNotEmpty() and stringsa with some spaces
Date Wed, 25 Jun 2003 10:02:57 GMT
This behavior is specified in the JavaDocs. However, I also think this 
is not really consistent. Any thoughts?

Reinhard


Dmitri Ilyin wrote:

>Hi,
>
>if is use isEmpty() method of StringUtils with "   " (string with some
>spaces) and isNotEmpty() with the same string i get true from both methods,
>becouse isEmpty trims the parameter string and isNotEmpty doesn't.
>
>I think it is not OK.
>
>regards
>
>Dmitri
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>  
>


Mime
View raw message