I would tend to agree that it is inconsistent. I can't remember if isNotEmpty() was in release 1.0. If it was then changing it makes me uncomfortable.
Stephen > from: =?ISO-8859-1?Q?Reinhard_N=E4gele?= <[EMAIL PROTECTED]> > date: Wed, 25 Jun 2003 11:02:57 > to: [EMAIL PROTECTED] > subject: Re: StringUtils.isEmpty(), isNotEmpty() and stringsa with some spaces > > 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: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
